[PATCH] D97137: Bug fix of clang-format, the AlignConsecutiveDeclarations option doesn't handle pointer properly

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 22 12:01:06 PST 2021


HazardyKnusperkeks added a comment.

You should mark comments as done, if they are.

Does your modification maybe add something to the alignment which is not a declaration?

  int a;
  double b;
  a * b;

How is that formatted? Yeah unlikely that something like that is in code, but it could be if `operator*` has side effects and one does not need the result.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97137



More information about the cfe-commits mailing list