[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
Mon Apr 28 23:22:50 PDT 2025


================
@@ -39,6 +39,30 @@ AST_MATCHER(clang::ParmVarDecl, isArgvOfMain) {
   return FD ? FD->isMain() : false;
 }
 
+bool isWithinImplicitTemplateInstantiation(const TypeLoc *MatchedTypeLoc,
----------------
vbvictor wrote:

Could you please elaborate what is this function for?
I deleted its call in `not(isWithinImplicitTemplateInstantiation(...))` and all tests passed.
I suggest we can delete this function or add tests cases to cover added behavior.

https://github.com/llvm/llvm-project/pull/132924


More information about the cfe-commits mailing list