[clang-format] Fix PointerAlignment within lambdas in a multi-variable declaration...
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Sat, 12 Feb 2022 21:17:47 +0000 (22:17 +0100)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Mon, 14 Feb 2022 08:41:24 +0000 (09:41 +0100)
commite01f624adb0ed5d0f1369b0679a64484bac10d02
tree3868e2b16f89269474b129a63636159113e065c9
parent2df9430fbfaf40ecce5f902651e2725aaa4c275b
[clang-format] Fix PointerAlignment within lambdas in a multi-variable declaration statement.

Fixes https://github.com/llvm/llvm-project/issues/43115.

Also, handle while loops with initializers (C++20) the same way as for loops.

Reviewed By: HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D119648
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp