clang-format: Adds option to disable alignment after opening bracket
Details
Diff Detail
Event Timeline
I like the idea of an option to disable alignment for all parentheses. Should it be extended to all "scope openers"?
include/clang/Format/Format.h | ||
---|---|---|
233 | Maybe add: "This applies to round brackets (parentheses), angle brackets and square brackets." | |
lib/Format/ContinuationIndenter.cpp | ||
304–306 | If we apply to all brackets, then this should mostly just go away, right? Also, generally try to add at least one test for the different cases handled here. Just removing everything but "Style.AlignAfterOpenABracket" doesn't break any tests. | |
739–742 | I think most of this can go away if we really want to disable alignment for all parentheses. |
Maybe add: "This applies to round brackets (parentheses), angle brackets and square brackets."