[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines
Yusuke Kadowaki via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 23 09:01:20 PDT 2022
yusuke-kadowaki added inline comments.
================
Comment at: clang/include/clang/Format/Format.h:379
/// \version 3.7
bool AlignTrailingComments;
----------------
HazardyKnusperkeks wrote:
> Maybe you can port this to `AlignConsecutiveStyle`? `AcrossComments` would not affect anything in this context.
I took this approach
================
Comment at: clang/unittests/Format/FormatTest.cpp:74-77
+
+ // FIXME: expectedとCodeをformatしたものがEQ
EXPECT_EQ(Expected.str(), format(Code, Style));
+
----------------
Sorry I will remove these next time I update this patch.
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