[clang] [clang-format] Fix BreakAfterOpenBracket options being ignored with larger continuation indents (PR #228085)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 05:44:22 PDT 2026


================
@@ -942,6 +942,26 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
     }
     return false;
   };
+
+  auto ShouldBreakAfterOpeningBracket = [&](const FormatToken &Tok) {
+    // Suppose that IsOpeningBracket returned true for a Tok
+
+    // Corresponds to BreakAfterOpenBracketBracedList
----------------
HazardyKnusperkeks wrote:

Comments end in full stop.

https://github.com/llvm/llvm-project/pull/228085


More information about the cfe-commits mailing list