|
clang-tools 23.0.0git
|
Finds uses of short, long and long long and suggest replacing them with u?intXX(_t)?. More...
#include <IntegerTypesCheck.h>
Public Member Functions | |
| IntegerTypesCheck (StringRef Name, ClangTidyContext *Context) | |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| std::optional< TraversalKind > | getCheckTraversalKind () const override |
Finds uses of short, long and long long and suggest replacing them with u?intXX(_t)?.
Corresponding cpplint.py check: 'runtime/int'.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/runtime-int.html
Definition at line 29 of file IntegerTypesCheck.h.
| clang::tidy::google::runtime::IntegerTypesCheck::IntegerTypesCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 75 of file IntegerTypesCheck.cpp.
|
override |
Definition at line 104 of file IntegerTypesCheck.cpp.
References clang::getTokenAtLoc().
|
inlineoverride |
Definition at line 38 of file IntegerTypesCheck.h.
|
inlineoverride |
Definition at line 32 of file IntegerTypesCheck.h.
|
override |
Definition at line 87 of file IntegerTypesCheck.cpp.
|
override |
Definition at line 81 of file IntegerTypesCheck.cpp.