[PATCH] D139029: [clang-format] Don't move comments if AlignTrailingComments: Kind: Leave

Yusuke Kadowaki via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 06:59:08 PST 2022


yusuke-kadowaki added a comment.

@mairacanal 
Thank you for the catch!



================
Comment at: clang/unittests/Format/FormatTestComments.cpp:3101
+  // Allow to keep 2 empty lines
+  Style.MaxEmptyLinesToKeep = 2;
+  EXPECT_EQ("// do not touch\n"
----------------
This should probably be reset after this testcase to avoid side effects for other test cases.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139029/new/

https://reviews.llvm.org/D139029



More information about the cfe-commits mailing list