[PATCH] D50078: clang-format: support aligned nested conditionals formatting
Krasimir Georgiev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 1 04:44:56 PDT 2018
krasimir added a comment.
Could you clarify how each piece is supposed to be aligned in these examples?
This is what makes me happy:
// column limit V
int a = condition1 ? result1
: conditio2 ? result2
: loooooooooocondition
? result2
: dition3 ? resul3
: resul4;
// column limit V
int a = condition1
? loooooresult1
: conditio2 ? result2
: result4;
When BreakBeforeTernaryOperators is false:
int a = condition1 ? result1 :
conditio2 ? result2 :
ditino3 ? resul3 :
result4;
Repository:
rC Clang
https://reviews.llvm.org/D50078
More information about the cfe-commits
mailing list