28 if (ReplacementFormatFunction ==
"std::format")
29 return LangOpts.CPlusPlus20;
30 return LangOpts.CPlusPlus;
33 Preprocessor *ModuleExpanderPP)
override;
36 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
38 return TK_IgnoreUnlessSpelledInSource;
43 std::vector<StringRef> StrFormatLikeFunctions;
44 StringRef ReplacementFormatFunction;
45 utils::IncludeInserter IncludeInserter;
46 std::optional<StringRef> MaybeHeaderToInclude;
47 Preprocessor *PP =
nullptr;
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.