#include "UseStdPrintCheck.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) { … }
}
UseStdPrintCheck::UseStdPrintCheck(StringRef Name, ClangTidyContext *Context)
: … { … }
void UseStdPrintCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void UseStdPrintCheck::registerPPCallbacks(const SourceManager &SM,
Preprocessor *PP,
Preprocessor *ModuleExpanderPP) { … }
static clang::ast_matchers::StatementMatcher
unusedReturnValue(clang::ast_matchers::StatementMatcher MatchedCallExpr) { … }
void UseStdPrintCheck::registerMatchers(MatchFinder *Finder) { … }
void UseStdPrintCheck::check(const MatchFinder::MatchResult &Result) { … }
}