If a closing brace is followed by a non-trailing comment, the newline before the closing brace must also be removed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D125451
[clang-format] Handle comments below r_brace in RemoveBracesLLVM ClosedPublic Authored by owenpan on May 12 2022, 12:56 AM.
Details Summary If a closing brace is followed by a non-trailing comment, the newline before the closing brace must also be removed.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 12 2022, 3:35 AM This revision was landed with ongoing or failed builds.May 12 2022, 4:51 PM Closed by commit rG6cd9633c1da5: [clang-format] Handle comments below r_brace in RemoveBracesLLVM (authored by owenpan). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 429103 clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp
|