[clang] [clang-format] Fix tabs in aligned ForIndentation continuations (PR #235553)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 31 01:44:01 PDT 2026
================
@@ -3630,6 +3630,31 @@ TEST_F(AlignmentTest, ContinuedAligned) {
Style);
}
+TEST_F(AlignmentTest, ContinuedAlignedForIndentation) {
+ FormatStyle Style = getLLVMStyleWithColumns(30);
+ Style.UseTab = FormatStyle::UT_ForIndentation;
+ Style.TabWidth = Style.IndentWidth = 4;
+
+ verifyFormat("void f() {\n"
+ "\tabcdef =\n"
+ "\t foo(111111, 222222,\n"
+ "\t 333333);\n"
+ "}",
+ Style);
+}
+
+TEST_F(AlignmentTest, InlineBracedListForIndentation) {
----------------
Lane0218 wrote:
I checked that `InlineBracedListForIndentation` already passes without this fix. What regression is it intended to guard against? If it does not cover a separate case, could it be removed?
https://github.com/llvm/llvm-project/pull/235553
More information about the cfe-commits
mailing list