#include "TypePromotionInMathFnCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/StringSet.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::performance {
namespace {
AST_MATCHER_P(Type, isBuiltinType, BuiltinType::Kind, Kind) { … }
}
TypePromotionInMathFnCheck::TypePromotionInMathFnCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
void TypePromotionInMathFnCheck::registerPPCallbacks(
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { … }
void TypePromotionInMathFnCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void TypePromotionInMathFnCheck::registerMatchers(MatchFinder *Finder) { … }
void TypePromotionInMathFnCheck::check(const MatchFinder::MatchResult &Result) { … }
}