clang-tools 20.0.0git
|
#include <IdentifierNamingCheck.h>
Public Member Functions | |
bool | checkOptionValid (int StyleKindIndex) const |
bool | isOptionEnabled (StringRef OptionKey, const llvm::StringMap< std::string > &StrMap) const |
size_t | getAsteriskCount (const std::string &TypeName) const |
size_t | getAsteriskCount (const std::string &TypeName, const NamedDecl *ND) const |
void | loadDefaultConfig (IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
void | loadFileConfig (const ClangTidyCheck::OptionsView &Options, IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
bool | removeDuplicatedPrefix (SmallVector< StringRef, 8 > &Words, const IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
std::string | getPrefix (const Decl *D, const IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
std::string | getDataTypePrefix (StringRef TypeName, const NamedDecl *ND, const IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
std::string | getClassPrefix (const CXXRecordDecl *CRD, const IdentifierNamingCheck::HungarianNotationOption &HNOption) const |
std::string | getEnumPrefix (const EnumConstantDecl *ECD) const |
std::string | getDeclTypeName (const NamedDecl *ND) const |
Definition at line 91 of file IdentifierNamingCheck.h.
bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::checkOptionValid | ( | int | StyleKindIndex | ) | const |
Definition at line 421 of file IdentifierNamingCheck.cpp.
Referenced by clang::tidy::readability::IdentifierNamingCheck::getFileStyleFromOptions().
size_t clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getAsteriskCount | ( | const std::string & | TypeName | ) | const |
Definition at line 701 of file IdentifierNamingCheck.cpp.
References Pos.
size_t clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getAsteriskCount | ( | const std::string & | TypeName, |
const NamedDecl * | ND | ||
) | const |
Definition at line 712 of file IdentifierNamingCheck.cpp.
std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getClassPrefix | ( | const CXXRecordDecl * | CRD, |
const IdentifierNamingCheck::HungarianNotationOption & | HNOption | ||
) | const |
Definition at line 642 of file IdentifierNamingCheck.cpp.
References clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::General.
std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDataTypePrefix | ( | StringRef | TypeName, |
const NamedDecl * | ND, | ||
const IdentifierNamingCheck::HungarianNotationOption & | HNOption | ||
) | const |
Definition at line 561 of file IdentifierNamingCheck.cpp.
References clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::CString, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::DerivedType, Pos, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::PrimitiveType, Type, and clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::UserDefinedType.
std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDeclTypeName | ( | const NamedDecl * | ND | ) | const |
Definition at line 295 of file IdentifierNamingCheck.cpp.
std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getEnumPrefix | ( | const EnumConstantDecl * | ECD | ) | const |
Definition at line 656 of file IdentifierNamingCheck.cpp.
std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getPrefix | ( | const Decl * | D, |
const IdentifierNamingCheck::HungarianNotationOption & | HNOption | ||
) | const |
Definition at line 515 of file IdentifierNamingCheck.cpp.
Referenced by clang::tidy::readability::IdentifierNamingCheck::fixupWithStyle(), and clang::tidy::readability::IdentifierNamingCheck::matchesStyle().
bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::isOptionEnabled | ( | StringRef | OptionKey, |
const llvm::StringMap< std::string > & | StrMap | ||
) | const |
Definition at line 433 of file IdentifierNamingCheck.cpp.
void clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::loadDefaultConfig | ( | IdentifierNamingCheck::HungarianNotationOption & | HNOption | ) | const |
Definition at line 723 of file IdentifierNamingCheck.cpp.
References clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::CString, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::DerivedType, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::General, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::PrimitiveType, and clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::UserDefinedType.
Referenced by clang::tidy::readability::IdentifierNamingCheck::getFileStyleFromOptions().
void clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::loadFileConfig | ( | const ClangTidyCheck::OptionsView & | Options, |
IdentifierNamingCheck::HungarianNotationOption & | HNOption | ||
) | const |
Definition at line 445 of file IdentifierNamingCheck.cpp.
References clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::CString, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::DerivedType, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::General, clang::tidy::ClangTidyCheck::OptionsView::get(), clang::tidy::readability::HungarainNotationPrimitiveTypes, clang::tidy::readability::HungarainNotationUserDefinedTypes, clang::tidy::ClangTidyCheck::Options, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::PrimitiveType, Type, and clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::UserDefinedType.
Referenced by clang::tidy::readability::IdentifierNamingCheck::getFileStyleFromOptions().
bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::removeDuplicatedPrefix | ( | SmallVector< StringRef, 8 > & | Words, |
const IdentifierNamingCheck::HungarianNotationOption & | HNOption | ||
) | const |
Definition at line 538 of file IdentifierNamingCheck.cpp.
References clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::CString, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::DerivedType, clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::PrimitiveType, and clang::tidy::readability::IdentifierNamingCheck::HungarianNotationOption::UserDefinedType.
Referenced by clang::tidy::readability::IdentifierNamingCheck::fixupWithCase().