clang-tools 22.0.0git
|
Replace comparisons between signed and unsigned integers with their safe C++20 std::cmp_* alternative, if available. More...
#include <UseIntegerSignComparisonCheck.h>
Public Member Functions | |
UseIntegerSignComparisonCheck (StringRef Name, ClangTidyContext *Context) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
Replace comparisons between signed and unsigned integers with their safe C++20 std::cmp_* alternative, if available.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-integer-sign-comparison.html
Definition at line 23 of file UseIntegerSignComparisonCheck.h.
clang::tidy::modernize::UseIntegerSignComparisonCheck::UseIntegerSignComparisonCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 78 of file UseIntegerSignComparisonCheck.cpp.
|
override |
Definition at line 112 of file UseIntegerSignComparisonCheck.cpp.
References clang::tidy::modernize::parseOpCode().
|
inlineoverride |
Definition at line 32 of file UseIntegerSignComparisonCheck.h.
|
override |
Definition at line 92 of file UseIntegerSignComparisonCheck.cpp.
References clang::tidy::modernize::intCastExpression().
|
override |
Definition at line 107 of file UseIntegerSignComparisonCheck.cpp.
|
override |
Definition at line 86 of file UseIntegerSignComparisonCheck.cpp.