[PATCH] D119648: [clang-format] Fix PointerAlignment within lambdas in a multi-variable declaration statement.
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 12 13:05:53 PST 2022
curdeius updated this revision to Diff 408213.
curdeius added a comment.
Rebase on top of D119649 <https://reviews.llvm.org/D119649>, add a similar case with a leading comment.
Without it, there would be a different spacing of multi-variable initializers in loops, e.g. (-expected, +incorrect):
-/*comment*/ for (int *p, *q; p != q; p = p->next) {
+/*comment*/ for (int* p, *q; p != q; p = p->next) {
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119648/new/
https://reviews.llvm.org/D119648
Files:
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119648.408213.patch
Type: text/x-patch
Size: 4585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220212/48600f8d/attachment.bin>
More information about the cfe-commits
mailing list