[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

St. Muench via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 30 08:52:53 PDT 2025


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

Precisely, there were no template types so far in the existing unit tests which got deduced to array types.
That's why I added some.

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


More information about the cfe-commits mailing list