[clang-format] Correctly format variable templates.
authorMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Tue, 15 Mar 2022 12:16:08 +0000 (13:16 +0100)
committerMarek Kurdej <marek.kurdej+llvm.org@gmail.com>
Tue, 15 Mar 2022 12:16:56 +0000 (13:16 +0100)
commit3227aa3aa83440ff94a3b13a29623e03b05098f2
tree18a7bbf715de6c66cdfc76914fac62ec443488fd
parentf591231cadb8c539cc24afa522160b704b6dfe1d
[clang-format] Correctly format variable templates.

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

Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan

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