[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 6 12:50:02 PDT 2022


MyDeveloperDay added inline comments.


================
Comment at: clang/unittests/Format/FormatTestComments.cpp:2930
+  Style.ColumnLimit = 15;
+  EXPECT_EQ("int ab; // line\n"
+            "int a;  // long\n"
----------------
yusuke-kadowaki wrote:
> MyDeveloperDay wrote:
> > Why not verifyFormat here too and below?
> To test the ColumnLimit behavior.
pretty sure you can pass in a style


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132131



More information about the cfe-commits mailing list