clang-tools 20.0.0git
Public Member Functions | List of all members
clang::tidy::readability::IdentifierNamingCheck::HungarianNotation Struct Reference

#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
 

Detailed Description

Definition at line 91 of file IdentifierNamingCheck.h.

Member Function Documentation

◆ checkOptionValid()

bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::checkOptionValid ( int  StyleKindIndex) const

◆ getAsteriskCount() [1/2]

size_t clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getAsteriskCount ( const std::string &  TypeName) const

Definition at line 701 of file IdentifierNamingCheck.cpp.

References Pos.

◆ getAsteriskCount() [2/2]

size_t clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getAsteriskCount ( const std::string &  TypeName,
const NamedDecl *  ND 
) const

Definition at line 712 of file IdentifierNamingCheck.cpp.

◆ getClassPrefix()

std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getClassPrefix ( const CXXRecordDecl *  CRD,
const IdentifierNamingCheck::HungarianNotationOption HNOption 
) const

◆ getDataTypePrefix()

std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDataTypePrefix ( StringRef  TypeName,
const NamedDecl *  ND,
const IdentifierNamingCheck::HungarianNotationOption HNOption 
) const

◆ getDeclTypeName()

std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getDeclTypeName ( const NamedDecl *  ND) const

Definition at line 295 of file IdentifierNamingCheck.cpp.

References Pos, and Type.

◆ getEnumPrefix()

std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getEnumPrefix ( const EnumConstantDecl *  ECD) const

Definition at line 656 of file IdentifierNamingCheck.cpp.

References Name, and Word.

◆ getPrefix()

std::string clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::getPrefix ( const Decl D,
const IdentifierNamingCheck::HungarianNotationOption HNOption 
) const

◆ isOptionEnabled()

bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::isOptionEnabled ( StringRef  OptionKey,
const llvm::StringMap< std::string > &  StrMap 
) const

Definition at line 433 of file IdentifierNamingCheck.cpp.

◆ loadDefaultConfig()

void clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::loadDefaultConfig ( IdentifierNamingCheck::HungarianNotationOption HNOption) const

◆ loadFileConfig()

void clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::loadFileConfig ( const ClangTidyCheck::OptionsView Options,
IdentifierNamingCheck::HungarianNotationOption HNOption 
) const

◆ removeDuplicatedPrefix()

bool clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::removeDuplicatedPrefix ( SmallVector< StringRef, 8 > &  Words,
const IdentifierNamingCheck::HungarianNotationOption HNOption 
) const

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