27 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
30 return LangOpts.CPlusPlus;
34 void removeFromFoundDecls(
const Decl *D);
36 struct UsingDeclContext {
37 explicit UsingDeclContext(
const UsingDecl *FoundUsingDecl)
38 : FoundUsingDecl(FoundUsingDecl) {}
42 llvm::SmallPtrSet<const Decl *, 4> UsingTargetDecls;
44 const UsingDecl *FoundUsingDecl;
46 CharSourceRange UsingDeclRange;
51 std::vector<UsingDeclContext> Contexts;
52 llvm::SmallPtrSet<const Decl *, 32> UsingTargetDeclsCache;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.