31 return LangOpts.CPlusPlus;
35 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
38 void diagnoseThrowLocations(
const CXXThrowExpr *ThrowExpr);
39 void diagnoseCatchLocations(
const CXXCatchStmt *CatchStmt,
41 bool isFunctionParameter(
const DeclRefExpr *DeclRefExpr);
42 bool isCatchVariable(
const DeclRefExpr *DeclRefExpr);
43 bool isFunctionOrCatchVar(
const DeclRefExpr *DeclRefExpr);
44 const bool CheckAnonymousTemporaries;
45 const bool WarnOnLargeObject;
46 const uint64_t MaxSizeOptions;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.