clang-tools 22.0.0git
|
Warns about identifiers names whose length is too short. More...
#include <IdentifierLengthCheck.h>
Public Member Functions | |
IdentifierLengthCheck (StringRef Name, ClangTidyContext *Context) | |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Warns about identifiers names whose length is too short.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-length.html
Definition at line 21 of file IdentifierLengthCheck.h.
clang::tidy::readability::IdentifierLengthCheck::IdentifierLengthCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 29 of file IdentifierLengthCheck.cpp.
References clang::tidy::readability::DefaultIgnoredExceptionVariableNames, clang::tidy::readability::DefaultIgnoredLoopCounterNames, clang::tidy::readability::DefaultIgnoredParameterNames, clang::tidy::readability::DefaultIgnoredVariableNames, clang::tidy::readability::DefaultMinimumExceptionNameLength, clang::tidy::readability::DefaultMinimumLoopCounterNameLength, clang::tidy::readability::DefaultMinimumParameterNameLength, and clang::tidy::readability::DefaultMinimumVariableNameLength.
|
override |
Definition at line 88 of file IdentifierLengthCheck.cpp.
References clang::tidy::readability::ErrorMessage.
|
override |
Definition at line 67 of file IdentifierLengthCheck.cpp.
|
override |
Definition at line 54 of file IdentifierLengthCheck.cpp.