[PATCH] D151761: clang-format: Add AlignConsecutiveShortCaseStatements
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 3 07:17:37 PDT 2023
HazardyKnusperkeks added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:19217
+
+ // Verify comments and empty lines break the alignment
+ verifyFormat("switch (level) {\n"
----------------
================
Comment at: clang/unittests/Format/FormatTest.cpp:19218
+ // Verify comments and empty lines break the alignment
+ verifyFormat("switch (level) {\n"
+ "case log::info: return \"info\";\n"
----------------
If both strings are the same, you only need to supply it once.
Or are they different and I can't see it?
================
Comment at: clang/unittests/Format/FormatTest.cpp:19257
+
+ Alignment.ColumnLimit = 80;
+ Alignment.SpaceBeforeCaseColon = true;
----------------
For what is this?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151761/new/
https://reviews.llvm.org/D151761
More information about the cfe-commits
mailing list