[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 07:31:54 PDT 2025
================
@@ -39,6 +39,30 @@ AST_MATCHER(clang::ParmVarDecl, isArgvOfMain) {
return FD ? FD->isMain() : false;
}
+bool isWithinImplicitTemplateInstantiation(const TypeLoc *MatchedTypeLoc,
----------------
vbvictor wrote:
Hmm, I will try rerunning tests. I thought that all new tests cases came from "template_arg_with_array_type_loc" matcher.
Still, isn't it strange that you narrowed "typeloc" matcher with new `isWithinImplicitTemplateInstantiation()` but did not delete any CHECK-MESSAGES from existing test cases?
https://github.com/llvm/llvm-project/pull/132924
More information about the cfe-commits
mailing list