clang API Documentation
A ASTContext-independent way to refer to selectors. More...
#include <GlobalSelector.h>
Public Member Functions | |
| GlobalSelector () | |
| Selector | getSelector (ASTContext &AST) const |
| Get the ASTContext-specific selector. | |
| bool | isValid () const |
| bool | isInvalid () const |
| std::string | getPrintableName () const |
| Get a printable name for debugging purpose. | |
| void * | getAsOpaquePtr () const |
Static Public Member Functions | |
| static GlobalSelector | get (Selector Sel, Program &Prog) |
| Get a GlobalSelector for the ASTContext-specific selector. | |
| static GlobalSelector | getFromOpaquePtr (void *Ptr) |
| static GlobalSelector | getEmptyMarker () |
| static GlobalSelector | getTombstoneMarker () |
Friends | |
| bool | operator== (const GlobalSelector &LHS, const GlobalSelector &RHS) |
| bool | operator< (const GlobalSelector &LHS, const GlobalSelector &RHS) |
A ASTContext-independent way to refer to selectors.
Definition at line 28 of file GlobalSelector.h.
| clang::idx::GlobalSelector::GlobalSelector | ( | ) | [inline] |
Definition at line 34 of file GlobalSelector.h.
Referenced by get(), getEmptyMarker(), getFromOpaquePtr(), and getTombstoneMarker().
| GlobalSelector GlobalSelector::get | ( | Selector | Sel, |
| Program & | Prog | ||
| ) | [static] |
Get a GlobalSelector for the ASTContext-specific selector.
Definition at line 49 of file GlobalSelector.cpp.
References clang::IdentifierTable::get(), clang::Selector::getAsOpaquePtr(), clang::Selector::getIdentifierInfoForSlot(), clang::idx::ProgramImpl::getIdents(), clang::IdentifierInfo::getName(), clang::Selector::getNumArgs(), clang::SelectorTable::getSelector(), clang::idx::ProgramImpl::getSelectors(), GlobalSelector(), clang::Selector::isNull(), and clang::Selector::isUnarySelector().
Referenced by clang::idx::Analyzer::FindObjCMethods(), clang::idx::Analyzer::FindReferences(), and clang::idx::EntityGetter::VisitNamedDecl().
| void* clang::idx::GlobalSelector::getAsOpaquePtr | ( | ) | const [inline] |
Definition at line 48 of file GlobalSelector.h.
Referenced by clang::idx::EntityGetter::VisitNamedDecl().
| static GlobalSelector clang::idx::GlobalSelector::getEmptyMarker | ( | ) | [inline, static] |
Definition at line 64 of file GlobalSelector.h.
References GlobalSelector().
Referenced by llvm::DenseMapInfo< clang::idx::GlobalSelector >::getEmptyKey().
| static GlobalSelector clang::idx::GlobalSelector::getFromOpaquePtr | ( | void * | Ptr | ) | [inline, static] |
Definition at line 50 of file GlobalSelector.h.
References GlobalSelector().
Referenced by clang::idx::EntityImpl::getDecl().
| std::string GlobalSelector::getPrintableName | ( | ) | const |
Get a printable name for debugging purpose.
Definition at line 40 of file GlobalSelector.cpp.
References clang::Selector::getAsString(), and isInvalid().
| Selector GlobalSelector::getSelector | ( | ASTContext & | AST | ) | const |
Get the ASTContext-specific selector.
Definition at line 22 of file GlobalSelector.cpp.
References clang::IdentifierTable::get(), clang::Selector::getIdentifierInfoForSlot(), clang::IdentifierInfo::getName(), clang::Selector::getNumArgs(), clang::SelectorTable::getSelector(), clang::ASTContext::Idents, isInvalid(), clang::Selector::isUnarySelector(), and clang::ASTContext::Selectors.
| static GlobalSelector clang::idx::GlobalSelector::getTombstoneMarker | ( | ) | [inline, static] |
Definition at line 65 of file GlobalSelector.h.
References GlobalSelector().
Referenced by llvm::DenseMapInfo< clang::idx::GlobalSelector >::getTombstoneKey().
| bool clang::idx::GlobalSelector::isInvalid | ( | ) | const [inline] |
Definition at line 40 of file GlobalSelector.h.
References isValid().
Referenced by getPrintableName(), and getSelector().
| bool clang::idx::GlobalSelector::isValid | ( | ) | const [inline] |
Definition at line 39 of file GlobalSelector.h.
Referenced by clang::idx::Indexer::GetTranslationUnitsFor(), and isInvalid().
| bool operator< | ( | const GlobalSelector & | LHS, |
| const GlobalSelector & | RHS | ||
| ) | [friend] |
Definition at line 59 of file GlobalSelector.h.
| bool operator== | ( | const GlobalSelector & | LHS, |
| const GlobalSelector & | RHS | ||
| ) | [friend] |
Definition at line 54 of file GlobalSelector.h.