Break after a constructor initializer colon only if it's not followed by a
comment on the same line.
Fixes https://github.com/llvm/llvm-project/issues/41128.
Fixes https://github.com/llvm/llvm-project/issues/43246.
Paths
| Differential D129057
[clang-format] Break on AfterColon only if not followed by comment ClosedPublic Authored by owenpan on Jul 3 2022, 6:36 PM.
Details Summary Break after a constructor initializer colon only if it's not followed by a Fixes https://github.com/llvm/llvm-project/issues/41128.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Jul 4 2022, 12:55 AM Comment Actions
Thank you for your quick review and good comments as always!
This revision was landed with ongoing or failed builds.Jul 4 2022, 12:35 PM Closed by commit rG47bdf53a5dba: [clang-format] Break on AfterColon only if not followed by comment (authored by owenpan). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 442135 clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
You should add a test without modifying an existing one.