[clang] [clang-format] Break trailing comment alignment at non-trailing comments (PR #208324)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 18 00:01:21 PDT 2026


================
@@ -1129,7 +1152,7 @@ void WhitespaceManager::alignTrailingComments() {
       return Tok->NewlinesBefore > 0;
     };
 
-    if (I > 0 && C.NewlinesBefore == 0 &&
+    if (I > 0 && C.NewlinesBefore == 0 && NewLineThreshold <= 1 &&
----------------
owenca wrote:

Undo.

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


More information about the cfe-commits mailing list