djasper added a comment.

Sorry for being a bit late here and thanks @klimek for bringing this to my 
attention.
This has been years ago, but if I reconstruct my thinking (and look at the test 
cases), then I'd say that "left" alignment should not be applied to 
multi-variable decl statements ever.

  int* a, b;

Just looks too much like it's declaring two int pointers when it is not. And it 
leads to all sorts of weirdness when doing line wrapping.
So, I'd really like to keep the current behavior.
If you'd want to change it because it makes a difference for someone's 
codebase, I'd almost lean towards introducing an additional 
PointerAlignmentStyle PAS_LeftEvenForMutliVarDeclStatements :).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88239

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to