9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USESTDFORMATCHECK_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_USESTDFORMATCHECK_H
12#include "../ClangTidyCheck.h"
13#include "../utils/IncludeInserter.h"
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;
46 std::optional<StringRef> MaybeHeaderToInclude;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Produces fixes to insert specified includes to source files, if not yet present.
llvm::StringMap< ClangTidyValue > OptionMap