9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_INTEGERTYPESCHECK_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_GOOGLE_INTEGERTYPESCHECK_H
12#include "../ClangTidyCheck.h"
20namespace tidy::google::runtime {
33 return LangOpts.CPlusPlus && !LangOpts.ObjC;
36 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
39 return TK_IgnoreUnlessSpelledInSource;
43 const StringRef UnsignedTypePrefix;
44 const StringRef SignedTypePrefix;
45 const StringRef TypeSuffix;
47 std::unique_ptr<IdentifierTable> IdentTable;
llvm::SmallString< 256U > Name
Base class for all clang-tidy checks.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Finds uses of short, long and long long and suggest replacing them with u?intXX(_t)?...
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override
Override this to disable registering matchers and PP callbacks if an invalid language version is bein...
std::optional< TraversalKind > getCheckTraversalKind() const override
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
void storeOptions(ClangTidyOptions::OptionMap &Opts) override
Should store all options supported by this check with their current values or default values for opti...
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::StringMap< ClangTidyValue > OptionMap