37 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
39 Preprocessor *ModuleExpanderPP)
override;
44 include_cleaner::RecordedPP RecordedPreprocessor;
45 include_cleaner::PragmaIncludes RecordedPI;
46 const Preprocessor *PP =
nullptr;
47 std::vector<StringRef> IgnoreHeaders;
49 const bool DeduplicateFindings;
51 const bool UnusedIncludes;
53 const bool MissingIncludes;
54 llvm::SmallVector<llvm::Regex> IgnoreHeadersRegex;
55 bool shouldIgnore(
const include_cleaner::Header &H);
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.