29 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
31 return LangOpts.CPlusPlus17;
34 return TK_IgnoreUnlessSpelledInSource;
38 void diagOnSingleLock(
const VarDecl *LockGuard,
39 const ast_matchers::MatchFinder::MatchResult &Result);
40 void diagOnMultipleLocks(
41 const llvm::SmallVector<llvm::SmallVector<const VarDecl *>> &LockGroups,
42 const ast_matchers::MatchFinder::MatchResult &Result);
43 void diagOnSourceInfo(
const TypeSourceInfo *LockGuardSourceInfo,
44 const ast_matchers::MatchFinder::MatchResult &Result);
45 void diagOnUsingDecl(
const UsingDecl *UsingDecl,
46 const ast_matchers::MatchFinder::MatchResult &Result);
48 const bool WarnOnSingleLocks;
49 const bool WarnOnUsingAndTypedef;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.