24 if (ReplacementPrintFunction ==
"std::print" ||
25 ReplacementPrintlnFunction ==
"std::println")
26 return LangOpts.CPlusPlus23;
27 return LangOpts.CPlusPlus;
30 Preprocessor *ModuleExpanderPP)
override;
33 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
35 return TK_IgnoreUnlessSpelledInSource;
41 std::vector<StringRef> PrintfLikeFunctions;
42 std::vector<StringRef> FprintfLikeFunctions;
43 StringRef ReplacementPrintFunction;
44 StringRef ReplacementPrintlnFunction;
45 utils::IncludeInserter IncludeInserter;
46 std::optional<StringRef> MaybeHeaderToInclude;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.