25 StringRef MakeSmartPtrFunctionName);
28 Preprocessor *ModuleExpanderPP)
override;
29 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
final;
47 utils::IncludeInserter Inserter;
48 const StringRef MakeSmartPtrFunctionHeader;
49 const StringRef MakeSmartPtrFunctionName;
50 const bool IgnoreMacros;
51 const bool IgnoreDefaultInitialization;
53 void checkConstruct(SourceManager &SM, ASTContext *Ctx,
54 const CXXConstructExpr *Construct,
const VarDecl *DVar,
55 const QualType *Type,
const CXXNewExpr *New);
56 void checkReset(SourceManager &SM, ASTContext *Ctx,
57 const CXXMemberCallExpr *Reset,
const CXXNewExpr *New);
60 bool replaceNew(DiagnosticBuilder &Diag,
const CXXNewExpr *New,
61 SourceManager &SM, ASTContext *Ctx);
62 void insertHeader(DiagnosticBuilder &Diag, FileID FD);
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.