#include "MinMaxUseInitializerListCheck.h"
#include "../utils/ASTUtils.h"
#include "../utils/LexerUtils.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang;
namespace {
struct FindArgsResult { … };
}
usingnamespaceclang::ast_matchers;
namespace clang::tidy::modernize {
static FindArgsResult findArgs(const CallExpr *Call) { … }
static std::pair<bool, SmallVector<FixItHint>>
generateReplacements(const MatchFinder::MatchResult &Match,
const CallExpr *TopCall, const FindArgsResult &Result,
const bool IgnoreNonTrivialTypes,
const std::uint64_t IgnoreTrivialTypesOfSizeAbove) { … }
MinMaxUseInitializerListCheck::MinMaxUseInitializerListCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
void MinMaxUseInitializerListCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void MinMaxUseInitializerListCheck::registerMatchers(MatchFinder *Finder) { … }
void MinMaxUseInitializerListCheck::registerPPCallbacks(
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { … }
void MinMaxUseInitializerListCheck::check(
const MatchFinder::MatchResult &Match) { … }
}