Skip to content

Commit a110811

Browse files
Extent tests
1 parent 0bce319 commit a110811

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
@@ -3533,6 +3533,18 @@ TEST_F(FormatTestComments, DontAlignOverPPDirective) {
35333533
"long loong = 1; // Dont align",
35343534
Style);
35353535

3536+
verifyFormat("#define A // Comment that\n"
3537+
" // would wrap\n"
3538+
"#define FOO // For the\n"
3539+
" // alignment\n"
3540+
"#define B // Also\n"
3541+
" // aligned",
3542+
"#define A // Comment that would wrap\n"
3543+
"#define FOO // For the alignment\n"
3544+
"#define B // Also\n"
3545+
" // aligned",
3546+
Style);
3547+
35363548
Style.AlignTrailingComments.OverEmptyLines = 1;
35373549
verifyNoChange("#define A // Comment\n"
35383550
"\n"

0 commit comments

Comments
 (0)