align_assign_decl_func
Category: Code alignment options (not left column spaces/tabs) Type: numeric [0 .. 2] Default: 0
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
raw CPP code | align_assign_decl_func=0 align_assign_span=3 |
align_assign_decl_func=1 align_assign_span=3 |
align_assign_decl_func=2 align_assign_span=3 |
---|---|---|---|
struct foo { int id = 1; 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; }; | struct foo { int id = 1; 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; }; |
IMPORTANT: the default value is 0 but this default value modifies the code BUG: the values 0 and 1 do the same thing; 0 is not working. Edited by JEAYNE
TAGS: bug important
Not the best code for this option? See how to improve the .uds file used to generate these examples.