clang-tools 22.0.0git
|
Detects when the integral literal or floating point literal has non-uppercase suffix, and suggests to make the suffix uppercase. More...
#include <UppercaseLiteralSuffixCheck.h>
Public Member Functions | |
UppercaseLiteralSuffixCheck (StringRef Name, ClangTidyContext *Context) | |
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 |
template<typename LiteralType> | |
bool | checkBoundMatch (const MatchFinder::MatchResult &Result) |
Detects when the integral literal or floating point literal has non-uppercase suffix, and suggests to make the suffix uppercase.
Alternatively, a list of destination suffixes can be provided.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/uppercase-literal-suffix.html
Definition at line 23 of file UppercaseLiteralSuffixCheck.h.
clang::tidy::readability::UppercaseLiteralSuffixCheck::UppercaseLiteralSuffixCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 179 of file UppercaseLiteralSuffixCheck.cpp.
|
override |
Definition at line 229 of file UppercaseLiteralSuffixCheck.cpp.
bool clang::tidy::readability::UppercaseLiteralSuffixCheck::checkBoundMatch | ( | const MatchFinder::MatchResult & | Result | ) |
Definition at line 206 of file UppercaseLiteralSuffixCheck.cpp.
|
inlineoverride |
Definition at line 29 of file UppercaseLiteralSuffixCheck.h.
|
override |
Definition at line 193 of file UppercaseLiteralSuffixCheck.cpp.
|
override |
Definition at line 186 of file UppercaseLiteralSuffixCheck.cpp.
References clang::tidy::utils::options::serializeStringList().