[clang] [clang-format] Add LeaveAll to the BreakAfterAttributes option (PR #187204)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 18 12:50:32 PDT 2026


================
@@ -28,10 +28,10 @@ static bool mustBreakAfterAttributes(const FormatToken &Tok,
   switch (Style.BreakAfterAttributes) {
   case FormatStyle::ABS_Always:
     return true;
-  case FormatStyle::ABS_Leave:
-    return Tok.NewlinesBefore > 0;
-  default:
+  case FormatStyle::ABS_Never:
     return false;
+  default:
----------------
HazardyKnusperkeks wrote:

I would be explicit.

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


More information about the cfe-commits mailing list