26 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
29 return LangOpts.CPlusPlus;
33 void removeFromFoundDecls(
const Decl *D);
35 struct UsingDeclContext {
36 explicit UsingDeclContext(
const UsingDecl *FoundUsingDecl)
37 : FoundUsingDecl(FoundUsingDecl) {}
41 llvm::SmallPtrSet<const Decl *, 4> UsingTargetDecls;
43 const UsingDecl *FoundUsingDecl;
45 CharSourceRange UsingDeclRange;
50 std::vector<UsingDeclContext> Contexts;
51 llvm::SmallPtrSet<const Decl *, 32> UsingTargetDeclsCache;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.