================ @@ -39,6 +39,30 @@ AST_MATCHER(clang::ParmVarDecl, isArgvOfMain) { return FD ? FD->isMain() : false; } +bool isWithinImplicitTemplateInstantiation(const TypeLoc *MatchedTypeLoc, ---------------- stmuench wrote:
I tried to implement it this way at first but unfortunately the `hasAncestor` matcher seems to not work correctly for matched `TypeLoc`s. The reason for that is not clear to me at all. That's why I added a manual implementation as workaround. https://github.com/llvm/llvm-project/pull/132924 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits