clang API Documentation
#include <EntityImpl.h>


Public Member Functions | |
| EntityImpl (Entity parent, DeclarationName name, unsigned idNS, bool isObjCInstanceMethod) | |
| Decl * | getDecl (ASTContext &AST) |
| Find the Decl that can be referred to by this entity. | |
| std::string | getPrintableName () |
| void | Profile (llvm::FoldingSetNodeID &ID) const |
Static Public Member Functions | |
| static Entity | get (Decl *D, Program &Prog, ProgramImpl &ProgImpl) |
| Get an Entity associated with the given Decl. | |
| static Entity | get (StringRef Name, Program &Prog, ProgramImpl &ProgImpl) |
| Get an Entity associated with a global name. | |
| static void | Profile (llvm::FoldingSetNodeID &ID, Entity Parent, DeclarationName Name, unsigned IdNS, bool isObjCInstanceMethod) |
Definition at line 27 of file EntityImpl.h.
| clang::idx::EntityImpl::EntityImpl | ( | Entity | parent, |
| DeclarationName | name, | ||
| unsigned | idNS, | ||
| bool | isObjCInstanceMethod | ||
| ) | [inline] |
Definition at line 39 of file EntityImpl.h.
| Entity EntityImpl::get | ( | Decl * | D, |
| Program & | Prog, | ||
| ProgramImpl & | ProgImpl | ||
| ) | [static] |
Get an Entity associated with the given Decl.
Definition at line 206 of file Entity.cpp.
References clang::DeclVisitor< ImplClass, RetTy >::Visit().
| Entity EntityImpl::get | ( | StringRef | Name, |
| Program & | Prog, | ||
| ProgramImpl & | ProgImpl | ||
| ) | [static] |
Get an Entity associated with a global name.
Definition at line 212 of file Entity.cpp.
References clang::idx::EntityGetter::getGlobalEntity().
| const Decl * CallOrObjCMessage::getDecl | ( | ASTContext & | AST | ) |
Find the Decl that can be referred to by this entity.
Definition at line 167 of file Entity.cpp.
References clang::IdentifierTable::get(), clang::DeclarationName::getAsIdentifierInfo(), clang::Selector::getAsOpaquePtr(), clang::idx::Entity::getDecl(), clang::idx::GlobalSelector::getFromOpaquePtr(), clang::Decl::getIdentifierNamespace(), clang::DeclarationName::getObjCSelector(), clang::ASTContext::getTranslationUnitDecl(), clang::ASTContext::Idents, clang::idx::Entity::isInvalid(), clang::Selector::isNull(), and clang::DeclContext::lookup().
| std::string EntityImpl::getPrintableName | ( | ) |
Definition at line 217 of file Entity.cpp.
References clang::DeclarationName::getAsString().
| void clang::idx::EntityImpl::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 54 of file EntityImpl.h.
Referenced by clang::idx::EntityGetter::getEntity().
| static void clang::idx::EntityImpl::Profile | ( | llvm::FoldingSetNodeID & | ID, |
| Entity | Parent, | ||
| DeclarationName | Name, | ||
| unsigned | IdNS, | ||
| bool | isObjCInstanceMethod | ||
| ) | [inline, static] |
Definition at line 57 of file EntityImpl.h.
References clang::idx::Entity::getAsOpaquePtr(), and clang::DeclarationName::getAsOpaquePtr().