[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 18 15:48:06 PDT 2025
================
@@ -6090,6 +6083,11 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
return true;
}
+ if (Style.BreakAfterAttributes == FormatStyle::ABS_Leave &&
+ Left.is(TT_AttributeRSquare) && Right.NewlinesBefore > 0) {
+ return true;
+ }
+
----------------
owenca wrote:
```suggestion
```
This was meant for another patch.
https://github.com/llvm/llvm-project/pull/164052
More information about the cfe-commits
mailing list