clang
9.0.0
|
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, IdentifierInfo **IIV) |
Can create any sort of selector. More... | |
Selector | getUnarySelector (IdentifierInfo *ID) |
Selector | getNullarySelector (IdentifierInfo *ID) |
size_t | getTotalMemory () const |
Return the total amount of memory allocated for managing selectors. More... | |
Static Public Member Functions | |
static SmallString< 64 > | constructSetterName (StringRef Name) |
Return the default setter name for the given identifier. More... | |
static Selector | constructSetterSelector (IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name) |
Return the default setter selector for the given identifier. More... | |
static std::string | getPropertyNameFromSetterSelector (Selector Sel) |
Return the property name for the given setter selector. More... | |
This table allows us to fully hide how we implement multi-keyword caching.
Definition at line 811 of file IdentifierTable.h.
SelectorTable::SelectorTable | ( | ) |
Definition at line 662 of file IdentifierTable.cpp.
|
delete |
SelectorTable::~SelectorTable | ( | ) |
Definition at line 666 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 609 of file IdentifierTable.cpp.
Referenced by 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 617 of file IdentifierTable.cpp.
Referenced by addContextSensitiveTypeNullability(), LookupMemberExpr(), and LookupMethodInReceiverType().
|
inline |
Definition at line 831 of file IdentifierTable.h.
Referenced by cleanupDeallocOrFinalize(), clang::CodeGen::CodeGenFunction::EmitBlockCopyAndAutorelease(), GCRewriteFinalize(), clang::NSAPI::getNSArraySelector(), clang::NSAPI::getNSDictionarySelector(), LookupMemberExpr(), LookupMethodInReceiverType(), and clang::serialization::reader::ASTSelectorLookupTrait::ReadKey().
|
static |
Return the property name for the given setter selector.
Definition at line 625 of file IdentifierTable.cpp.
Referenced by isImplicitSelf().
Selector SelectorTable::getSelector | ( | unsigned | NumArgs, |
IdentifierInfo ** | IIV | ||
) |
Can create any sort of selector.
NumArgs
indicates whether this is a no argument selector "foo", a single argument selector "foo:" or multi-argument "foo:bar:".
Definition at line 636 of file IdentifierTable.cpp.
References getSelectorTableImpl(), and clang::MultiKeywordSelector::Profile().
Referenced by AllTrivialInitializers(), CheckKeyForObjCARCConversion(), clang::CodeGen::CodeGenFunction::EmitObjCMRRAutoreleasePoolPop(), clang::CodeGen::CodeGenFunction::EmitObjCMRRAutoreleasePoolPush(), clang::getKeywordSelector(), clang::NSAPI::getNSArraySelector(), clang::NSAPI::getNSDictionarySelector(), clang::NSAPI::getNSSetSelector(), clang::NSAPI::getNSStringSelector(), clang::GetNullarySelector(), clang::GetUnarySelector(), clang::ASTImporter::Import(), clang::NSAPI::isSubclassOfNSClass(), clang::ObjCNoReturn::ObjCNoReturn(), and clang::serialization::reader::ASTSelectorLookupTrait::ReadKey().
size_t SelectorTable::getTotalMemory | ( | ) | const |
Return the total amount of memory allocated for managing selectors.
Definition at line 631 of file IdentifierTable.cpp.
References getSelectorTableImpl().
|
inline |
Definition at line 827 of file IdentifierTable.h.
Referenced by clang::NSAPI::getNSArraySelector(), clang::NSAPI::getNSDictionarySelector(), clang::NSAPI::getNSNumberLiteralSelector(), clang::NSAPI::getNSSetSelector(), clang::NSAPI::getNSStringSelector(), and clang::serialization::reader::ASTSelectorLookupTrait::ReadKey().
|
delete |