[clang] [clang-format] Reorder TokenAnnotator::canBreakBefore (PR #119044)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 21:03:41 PST 2024
================
@@ -6105,6 +6105,35 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
return false;
}
+ // We can break before an r_brace if there was a corresponding break after
+ // the l_brace, which is tracked by BreakBeforeClosingBrace, or if we are
+ // in a block indented initialization list.
----------------
owenca wrote:
```suggestion
// We can break before an r_brace if there was a break after the matching
// l_brace, which is tracked by BreakBeforeClosingBrace, or if we are in a
// block-indented initialization list.
```
https://github.com/llvm/llvm-project/pull/119044
More information about the cfe-commits
mailing list