================ @@ -5340,20 +5341,31 @@ bool Sema::CheckCXXDefaultArgExpr(SourceLocation CallLoc, FunctionDecl *FD, struct ImmediateCallVisitor : public RecursiveASTVisitor<ImmediateCallVisitor> { const ASTContext &Context; - ImmediateCallVisitor(const ASTContext &Ctx) : Context(Ctx) {} + llvm::SmallPtrSetImpl<const FunctionDecl *> *ReferencedFunctions; + + ImmediateCallVisitor(const ASTContext &Ctx, + llvm::SmallPtrSetImpl<const FunctionDecl *> + *ReferencedFunctions = nullptr) + : Context(Ctx), ReferencedFunctions(ReferencedFunctions) {} ---------------- cor3ntin wrote:
A separate class would avoid the pointer to SmallPtrSetImpl, which is not great https://github.com/llvm/llvm-project/pull/98758 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits