[PATCH] D119599: [clang-format] Add option to align compound assignments like `+=`

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 10 00:36:42 PST 2022


curdeius accepted this revision.
curdeius added a comment.

LGTM. Thanks a lot!



================
Comment at: clang/lib/Format/Format.cpp:1181-1184
+  LLVMStyle.AlignConsecutiveAssignments = {
+      /*Enabled=*/false, /*AcrossEmptyLines=*/false,
+      /*AcrossComments=*/false, /*AlignCompound=*/false,
+      /*PadOperators=*/true};
----------------
That should be more future-proof.


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