[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 20 10:05:18 PDT 2022
MyDeveloperDay added inline comments.
================
Comment at: clang/lib/Format/Format.cpp:1602
Style.AlignTrailingComments = false;
+ Style.AlignTrailingCommentsIgnoreEmptyLine = false;
Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty;
----------------
ditto remove
================
Comment at: clang/unittests/Format/FormatTest.cpp:26445
+ Style);
+}
+
----------------
I think it needs more tests than just include examples
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132131/new/
https://reviews.llvm.org/D132131
More information about the cfe-commits
mailing list