================ @@ -67,7 +67,7 @@ AST_MATCHER_P(CallExpr, hasLastArgument, // function had parameters defined (this is useful to check if there is only one // variadic argument). AST_MATCHER(CXXMemberCallExpr, hasSameNumArgsAsDeclNumParams) { - if (Node.getMethodDecl()->isFunctionTemplateSpecialization()) + if (Node.getMethodDecl()->getPrimaryTemplate()) ---------------- PiotrZSL wrote:
``` if (const FunctionTemplateDecl* PrimaryTemplate = Node.getMethodDecl()->getPrimaryTemplate()) return Node.getNumArgs() == PrimaryTemplate->getTemplatedDecl()->getNumParams(); ``` https://github.com/llvm/llvm-project/pull/66636 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits