If the style wraps control statement braces, the opening braces should be inserted after the trailing comments if present.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D132905
[clang-format] Fix a bug in inserting braces at trailing comments ClosedPublic Authored by owenpan on Aug 29 2022, 6:33 PM.
Details Summary If the style wraps control statement braces, the opening braces should be inserted after the trailing comments if present.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 30 2022, 12:39 PM Closed by commit rGbc10ab8da1b5: [clang-format] Fix a bug in inserting braces at trailing comments (authored by owenpan). · Explain WhyAug 30 2022, 10:51 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 456514 clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
|