#include "UseStdFormatCheck.h"
#include "../utils/FormatStringConverter.h"
#include "../utils/Matchers.h"
#include "../utils/OptionsUtils.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/FixIt.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::modernize {
namespace {
AST_MATCHER(StringLiteral, isOrdinary) { … }
}
UseStdFormatCheck::UseStdFormatCheck(StringRef Name, ClangTidyContext *Context)
: … { … }
void UseStdFormatCheck::registerPPCallbacks(const SourceManager &SM,
Preprocessor *PP,
Preprocessor *ModuleExpanderPP) { … }
void UseStdFormatCheck::registerMatchers(MatchFinder *Finder) { … }
void UseStdFormatCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void UseStdFormatCheck::check(const MatchFinder::MatchResult &Result) { … }
}