[PATCH] D139029: [clang-format] Don't move comments if AlignTrailingComments: Kind: Leave
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 30 11:43:35 PST 2022
HazardyKnusperkeks added a comment.
Can you please add a test with more than one newline?
================
Comment at: clang/unittests/Format/FormatTestComments.cpp:3065-3075
+ EXPECT_EQ("// do not touch\n"
+ "int a; // any comments\n\n"
+ " // comment\n"
+ "// comment\n\n"
+ "// comment\n",
+ format("// do not touch\n"
+ "int a; // any comments\n\n"
----------------
Makes it clearer what is happening here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139029/new/
https://reviews.llvm.org/D139029
More information about the cfe-commits
mailing list