Repository navigation
Closed
Labels
C and C++11NoAnswerIssues closed due to insufficient details provided by the reporter.waiting_for_answer
Description
Hi, switching these 2 options doesn't make a difference:
# How to align the star in variable definitions.
# 0=Part of the type 'void * foo;'
# 1=Part of the variable 'void *foo;'
# 2=Dangling 'void *foo;'
align_var_def_star_style = 2 # unsigned number
# How to align the '&' in variable definitions.
# 0=Part of the type
# 1=Part of the variable
# 2=Dangling
align_var_def_amp_style = 2 # unsigned numberSo setting both to 2 this works as expected:
(cfg="https://bitbucket.org/massimo/test/raw/61a0b91ee51726239c87566467f3935fb38b41a5/crusty-test_011.cfg" ; input="https://bitbucket.org/massimo/test/raw/61a0b91ee51726239c87566467f3935fb38b41a5/crusty-test_011.h" ; uncrustify -v ; curl -s "$input" ; curl -s "$input" | uncrustify -l cpp -c <(curl -s "$cfg") )
uncrustify 0.64_d
class MyClass
{
public:
MyClass ( const QString &_message );
QMainWindow *mainWindow;
const char* tag;
};
Parsing: 144 bytes (144 chars) from stdin as language CPP
class MyClass
{
public:
MyClass(const QString &_message);
QMainWindow *mainWindow;
const char *tag;
};Changing both options to 0, the result is different but not as expected and not consistent:
(cfg="https://bitbucket.org/massimo/test/raw/d9fd68158db1e88315cc0bbe5907fcccd266e2f0/crusty-test_011.cfg" ; input="https://bitbucket.org/massimo/test/raw/61a0b91ee51726239c87566467f3935fb38b41a5/crusty-test_011.h" ; uncrustify -v ; curl -s "$input" ; curl -s "$input" | uncrustify -l cpp -c <(curl -s "$cfg") )
uncrustify 0.64_d
class MyClass
{
public:
MyClass ( const QString &_message );
QMainWindow *mainWindow;
const char* tag;
};
Parsing: 144 bytes (144 chars) from stdin as language CPP
class MyClass
{
public:
MyClass ( const QString &_message );
QMainWindow *mainWindow;
const char* tag;
};My current build is from
* commit de474b8 (HEAD -> master, origin/master, origin/HEAD)
PS.: Please add some git revision to dev builds with uncrustify -v.
Metadata
Metadata
Assignees
Labels
C and C++11NoAnswerIssues closed due to insufficient details provided by the reporter.waiting_for_answer
Activity
CDanU commentedon Mar 29, 2017
It might be that the descriptions of the options are wrong.
Both option values are mapped to this enum:
Massimo-B commentedon Mar 30, 2017
No, settings both to 1 is the same result as with value 2:
guy-maurel commentedon Apr 10, 2017
Please push your configuration file
Massimo-B commentedon Apr 10, 2017
Please fetch the configuration from https://bitbucket.org/massimo/test/raw/81e92c0ea40d4972404dcd8d0e794f7865bd66cf/crusty-test_011.cfg
guy-maurel commentedon Apr 10, 2017
Please add a declaration such as:
to see how it works.
gmaurel commentedon Oct 16, 2017
No answer --> I close the call.
Massimo-B commentedon Oct 17, 2017
With current uncrustify and both options to 0 it still does not work as expected: