[clang] [clang-format] Don't count template template parameter as declaration (PR #95025)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 11 18:54:02 PDT 2024
================
@@ -584,6 +584,23 @@ TEST_F(TokenAnnotatorTest, UnderstandsNonTemplateAngleBrackets) {
EXPECT_TOKEN(Tokens[20], tok::greater, TT_BinaryOperator);
}
+TEST_F(TokenAnnotatorTest, UnderstandsTemplateTemplateParameters) {
+ auto Tokens = annotate("template <template <typename...> typename X,\n"
+ " template <typename...> typename Y,\n"
----------------
owenca wrote:
```suggestion
" template <typename...> class Y,\n"
```
To cover both type-parameter keys.
https://github.com/llvm/llvm-project/pull/95025
More information about the cfe-commits
mailing list