[clang-format] Fix misannotation of colon in presence of requires clause
authorBjörn Schäpers <bjoern@hazardy.de>
Mon, 4 Jul 2022 08:53:34 +0000 (10:53 +0200)
committerBjörn Schäpers <bjoern@hazardy.de>
Mon, 18 Jul 2022 19:41:09 +0000 (21:41 +0200)
commit2b04c41b28320c1e399209fbe7a5a8d540578999
treea159a85b8bfcd3fbc302aab50808d257a233f96e
parent523a99c0eb0331680905e9ef6fbdd114f4ee7a47
[clang-format] Fix misannotation of colon in presence of requires clause

For clauses without parentheses it was annotated as TT_InheritanceColon.
Relates to https://github.com/llvm/llvm-project/issues/56215

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