clang 20.0.0git
|
This table allows us to fully hide how we implement multi-keyword caching. More...
#include "clang/Basic/IdentifierTable.h"
Public Member Functions | |
SelectorTable () | |
SelectorTable (const SelectorTable &)=delete | |
SelectorTable & | operator= (const SelectorTable &)=delete |
~SelectorTable () | |
Selector | getSelector (unsigned NumArgs, const IdentifierInfo **IIV) |
Can create any sort of selector. | |
Selector | getUnarySelector (const IdentifierInfo *ID) |
Selector | getNullarySelector (const IdentifierInfo *ID) |
size_t | getTotalMemory () const |
Return the total amount of memory allocated for managing selectors. | |
Static Public Member Functions | |
static SmallString< 64 > | constructSetterName (StringRef Name) |
Return the default setter name for the given identifier. | |
static Selector | constructSetterSelector (IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name) |
Return the default setter selector for the given identifier. | |
static std::string | getPropertyNameFromSetterSelector (Selector Sel) |
Return the property name for the given setter selector. | |
This table allows us to fully hide how we implement multi-keyword caching.
Definition at line 1122 of file IdentifierTable.h.
SelectorTable::SelectorTable | ( | ) |
Definition at line 789 of file IdentifierTable.cpp.
|
delete |
SelectorTable::~SelectorTable | ( | ) |
Definition at line 793 of file IdentifierTable.cpp.
References getSelectorTableImpl().
|
static |
Return the default setter name for the given identifier.
This is "set" + Name
where the initial character of Name
has been capitalized.
Definition at line 735 of file IdentifierTable.cpp.
References clang::toUppercase().
Referenced by constructSetterSelector(), and hasDefaultSetterName().
|
static |
Return the default setter selector for the given identifier.
This is "set" + Name
where the initial character of Name
has been capitalized.
Definition at line 743 of file IdentifierTable.cpp.
References constructSetterName(), clang::IdentifierTable::get(), and getUnarySelector().
Referenced by clang::SemaObjC::ActOnClassPropertyRefExpr(), clang::SemaObjC::HandleExprPropertyRefExpr(), and LookupMemberExpr().
|
inline |
Definition at line 1142 of file IdentifierTable.h.
References ID.
Referenced by clang::SemaObjC::ActOnClassPropertyRefExpr(), AddObjCKeyValueCompletions(), clang::SemaObjC::checkObjCBridgeRelatedComponents(), cleanupDeallocOrFinalize(), GCRewriteFinalize(), clang::NSAPI::getNSArraySelector(), clang::NSAPI::getNSDictionarySelector(), clang::SemaObjC::HandleExprPropertyRefExpr(), LookupMemberExpr(), and clang::serialization::reader::ASTSelectorLookupTrait::ReadKey().