clang-tools 22.0.0git
clang::tidy::readability::IdentifierLengthCheck Class Reference

Warns about identifiers names whose length is too short. More...

#include <IdentifierLengthCheck.h>

Inheritance diagram for clang::tidy::readability::IdentifierLengthCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ IdentifierLengthCheck()

Member Function Documentation

◆ check()

void clang::tidy::readability::IdentifierLengthCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 88 of file IdentifierLengthCheck.cpp.

References clang::tidy::readability::ErrorMessage.

◆ registerMatchers()

void clang::tidy::readability::IdentifierLengthCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 67 of file IdentifierLengthCheck.cpp.

◆ storeOptions()

void clang::tidy::readability::IdentifierLengthCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 54 of file IdentifierLengthCheck.cpp.


The documentation for this class was generated from the following files: