clang API Documentation

Public Member Functions | Static Public Member Functions
clang::SelectorTable Class Reference

This table allows us to fully hide how we implement multi-keyword caching. More...

#include <IdentifierTable.h>

List of all members.

Public Member Functions

 SelectorTable ()
 ~SelectorTable ()
Selector getSelector (unsigned NumArgs, IdentifierInfo **IIV)
 Can create any sort of selector.
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 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.

Detailed Description

This table allows us to fully hide how we implement multi-keyword caching.

Definition at line 732 of file IdentifierTable.h.


Constructor & Destructor Documentation

SelectorTable::SelectorTable ( )

Definition at line 586 of file IdentifierTable.cpp.

Definition at line 590 of file IdentifierTable.cpp.

References getSelectorTableImpl().


Member Function Documentation

SmallString< 64 > SelectorTable::constructSetterName ( StringRef  Name) [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 539 of file IdentifierTable.cpp.

References clang::toUppercase().

Referenced by constructSetterSelector(), and hasDefaultSetterName().

Selector SelectorTable::constructSetterSelector ( IdentifierTable Idents,
SelectorTable SelTable,
const IdentifierInfo Name 
) [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 547 of file IdentifierTable.cpp.

References constructSetterName(), clang::IdentifierTable::get(), clang::IdentifierInfo::getName(), and getUnarySelector().

Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::HandleExprPropertyRefExpr(), and LookupMemberExpr().

Return the total amount of memory allocated for managing selectors.

Definition at line 555 of file IdentifierTable.cpp.

References getSelectorTableImpl().


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