You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncrustify-0.78.1_f downloaded from github, running on Windows 11.
Remainder: Explanation for option 'align_assign_decl_func'
How to apply align_assign_span to function declaration "assignments",
i.e. 'virtual void foo() = 0' or '~foo() = {default|delete}'.
0: Align with other assignments (default)
1: Align with each other, ignoring regular assignments
2: Don't align
For this input file
struct foo {
int id = 0;
virtual void f() = 0;
int debugLevel = 2;
~foo() = default;
int done = 3;
};
struct foo {
int id = 1;
virtual void f() = 0;
int debugLevel = 2;
~foo() = default;
int done = 3;
};
The output above is ok when align_assign_decl_func=1
But for align_assign_decl_func=0 I'm expecting the output below:
struct foo {
int id = 0;
virtual void f() = 0;
int debugLevel = 2;
~foo() = default;
int done = 3;
};
The attached file contains the input file, the config files, the output files and the debug files for align_assign_decl_func=0 and align_assign_decl_func=1
Uncrustify-0.78.1_f downloaded from github, running on Windows 11.
Remainder: Explanation for option 'align_assign_decl_func'
For this input file
These two commands:
uncrustify -c /dev/null --set align_assign_decl_func=0 --set align_assign_span=3 -f input.cpp
uncrustify -c /dev/null --set align_assign_decl_func=1 --set align_assign_span=3 -f input.cpp
Give the same output:
The output above is ok when
align_assign_decl_func=1
But for
align_assign_decl_func=0
I'm expecting the output below:The attached file contains the input file, the config files, the output files and the debug files for align_assign_decl_func=0 and align_assign_decl_func=1
align_assign_decl_func.tar.gz
The text was updated successfully, but these errors were encountered: