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

sstwcw via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 6 03:01:05 PST 2022


sstwcw added a comment.

About chained assignments, the current program does not attempt to align them in a consistent way.  And this revision doesn't change it.  Both before and after this revision, the output depend on the order of the statements.

  Foo = Bar = 5;
  Int Baz   = 5;
  
  Int Baz = 5;
  Foo = Bar = 5;

Is the title making you think it is about chained assignments?  I took the term "compound assignment" from Section 6.5.16.2 of C17.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119599



More information about the llvm-commits mailing list