clang API Documentation
#include <IdentifierTable.h>
Public Member Functions | |
| SelectorTable () | |
| ~SelectorTable () | |
| Selector | getSelector (unsigned NumArgs, IdentifierInfo **IIV) |
| Selector | getUnarySelector (IdentifierInfo *ID) |
| Selector | getNullarySelector (IdentifierInfo *ID) |
| size_t | getTotalMemory () const |
| Return the total amount of memory allocated for managing selectors. | |
Static Public Member Functions | |
| static Selector | constructSetterName (IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name) |
SelectorTable - This table allows us to fully hide how we implement multi-keyword caching.
Definition at line 685 of file IdentifierTable.h.
| SelectorTable::SelectorTable | ( | ) |
Definition at line 500 of file IdentifierTable.cpp.
| SelectorTable::~SelectorTable | ( | ) |
Definition at line 504 of file IdentifierTable.cpp.
References getSelectorTableImpl().
| Selector SelectorTable::constructSetterName | ( | IdentifierTable & | Idents, |
| SelectorTable & | SelTable, | ||
| const IdentifierInfo * | Name | ||
| ) | [static] |
constructSetterName - Return the setter name for the given identifier, i.e. "set" + Name where the initial character of Name has been capitalized.
Definition at line 458 of file IdentifierTable.cpp.
References clang::IdentifierTable::get(), clang::IdentifierInfo::getName(), and getUnarySelector().
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::HandleExprPropertyRefExpr(), clang::Parser::ObjCPropertyCallback::invoke(), and clang::Sema::LookupMemberExpr().
| Selector clang::SelectorTable::getNullarySelector | ( | IdentifierInfo * | ID | ) | [inline] |
Definition at line 701 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), AddObjCKeyValueCompletions(), cleanupDeallocOrFinalize(), GCRewriteFinalize(), and clang::Sema::HandleExprPropertyRefExpr().
| Selector SelectorTable::getSelector | ( | unsigned | NumArgs, |
| IdentifierInfo ** | IIV | ||
| ) |
getSelector - This 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 474 of file IdentifierTable.cpp.
References getSelectorTableImpl(), and clang::MultiKeywordSelector::Profile().
Referenced by AddObjCKeyValueCompletions(), clang::Sema::CheckProtocolMethodDefs(), clang::CodeGen::CodeGenFunction::EmitObjCForCollectionStmt(), clang::CodeGen::CodeGenFunction::EmitObjCMRRAutoreleasePoolPop(), clang::CodeGen::CodeGenFunction::EmitObjCMRRAutoreleasePoolPush(), clang::idx::GlobalSelector::get(), GetNullarySelector(), clang::GetNullarySelector(), clang::idx::GlobalSelector::getSelector(), clang::GetUnarySelector(), clang::ASTImporter::Import(), and clang::ento::ExprEngine::VisitObjCMessage().
| size_t SelectorTable::getTotalMemory | ( | ) | const |
Return the total amount of memory allocated for managing selectors.
Definition at line 469 of file IdentifierTable.cpp.
References getSelectorTableImpl().
| Selector clang::SelectorTable::getUnarySelector | ( | IdentifierInfo * | ID | ) | [inline] |
Definition at line 698 of file IdentifierTable.h.
Referenced by AddObjCKeyValueCompletions(), and constructSetterName().