[clang] [clang-tools-extra] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 11 05:52:10 PDT 2025
================
@@ -1090,6 +1090,7 @@ AST_POLYMORPHIC_MATCHER_P2(
AST_POLYMORPHIC_MATCHER_P(
templateArgumentCountIs,
AST_POLYMORPHIC_SUPPORTED_TYPES(ClassTemplateSpecializationDecl,
+ VarTemplateSpecializationDecl, FunctionDecl,
----------------
AaronBallman wrote:
It'd probably be good to update the example code above. Also, can you add test coverage to `clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp`?
https://github.com/llvm/llvm-project/pull/130416
More information about the cfe-commits
mailing list