[PATCH] D119599: [clang-format] Add option to align compound assignments like `+=`
sstwcw via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 5 21:19:59 PST 2022
sstwcw marked 5 inline comments as done.
sstwcw added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:16800
+ Alignment));
+}
+
----------------
HazardyKnusperkeks wrote:
> Can you test it with `AlignConsecutiveDeclarations`?
Do you mean like the formatting the same code with `AlignConsecutiveAssignments.Enabled` being false and `AlignConsecutiveDeclarations.Enabled` being true? By the way, I just realized that things like `int a += 5;` are not valid code. Should I remove the `int ` instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119599/new/
https://reviews.llvm.org/D119599
More information about the cfe-commits
mailing list