Skip to content

Commit 78dbff8

Browse files
Extent tests
1 parent 4d80cf4 commit 78dbff8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang/unittests/Format/FormatTestComments.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3410,6 +3410,18 @@ TEST_F(FormatTestComments, DontAlignOverPPDirective) {
34103410
"long loong = 1; // Dont align",
34113411
Style);
34123412

3413+
verifyFormat("#define A // Comment that\n"
3414+
" // would wrap\n"
3415+
"#define FOO // For the\n"
3416+
" // alignment\n"
3417+
"#define B // Also\n"
3418+
" // aligned",
3419+
"#define A // Comment that would wrap\n"
3420+
"#define FOO // For the alignment\n"
3421+
"#define B // Also\n"
3422+
" // aligned",
3423+
Style);
3424+
34133425
Style.AlignTrailingComments.OverEmptyLines = 1;
34143426
verifyNoChange("#define A // Comment\n"
34153427
"\n"

0 commit comments

Comments
 (0)