#include "IntegerTypesCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/AttrKinds.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/Lexer.h"
namespace clang {
usingnamespaceast_matchers;
static Token getTokenAtLoc(SourceLocation Loc,
const MatchFinder::MatchResult &MatchResult,
IdentifierTable &IdentTable) { … }
namespace {
AST_MATCHER(FunctionDecl, isUserDefineLiteral) { … }
AST_MATCHER(TypeLoc, isValidAndNotInMacro) { … }
AST_MATCHER(TypeLoc, isBuiltinType) { … }
}
namespace tidy::google::runtime {
IntegerTypesCheck::IntegerTypesCheck(StringRef Name, ClangTidyContext *Context)
: … { … }
void IntegerTypesCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void IntegerTypesCheck::registerMatchers(MatchFinder *Finder) { … }
void IntegerTypesCheck::check(const MatchFinder::MatchResult &Result) { … }
}
}