[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:19 PDT 2026


================
@@ -3007,6 +3007,130 @@ TEST_F(FormatTestComments, AlignTrailingCommentsAcrossEmptyLines) {
                Style);
 }
 
+TEST_F(FormatTestComments, NonTrailingCommentBreaksAlignment) {
----------------
owenca wrote:

```suggestion
TEST_F(FormatTestComments, OverEmptyLinesBreaksAlignmentAtBlockBoundaries) {
```

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


More information about the cfe-commits mailing list