clang API Documentation
Gets the Entity associated with a Decl. More...


Public Member Functions | |
| EntityGetter (Program &prog, ProgramImpl &progImpl) | |
| Entity | getEntity (Entity Parent, DeclarationName Name, unsigned IdNS, bool isObjCInstanceMethod) |
| Entity | getGlobalEntity (StringRef Name) |
| Entity | VisitNamedDecl (NamedDecl *D) |
| Entity | VisitVarDecl (VarDecl *D) |
| Entity | VisitFieldDecl (FieldDecl *D) |
| Entity | VisitFunctionDecl (FunctionDecl *D) |
| Entity | VisitTypeDecl (TypeDecl *D) |
Gets the Entity associated with a Decl.
Definition at line 37 of file Entity.cpp.
| clang::idx::EntityGetter::EntityGetter | ( | Program & | prog, |
| ProgramImpl & | progImpl | ||
| ) | [inline] |
Definition at line 42 of file Entity.cpp.
| Entity EntityGetter::getEntity | ( | Entity | Parent, |
| DeclarationName | Name, | ||
| unsigned | IdNS, | ||
| bool | isObjCInstanceMethod | ||
| ) |
Definition at line 62 of file Entity.cpp.
References clang::idx::ProgramImpl::Allocate(), clang::idx::ProgramImpl::getEntities(), and clang::idx::EntityImpl::Profile().
Referenced by getGlobalEntity(), and VisitNamedDecl().
| Entity EntityGetter::getGlobalEntity | ( | StringRef | Name | ) |
Definition at line 80 of file Entity.cpp.
References clang::IdentifierTable::get(), getEntity(), clang::idx::ProgramImpl::getIdents(), and clang::Decl::IDNS_Ordinary.
Referenced by clang::idx::EntityImpl::get().
Definition at line 151 of file Entity.cpp.
| Entity EntityGetter::VisitFunctionDecl | ( | FunctionDecl * | D | ) |
Definition at line 143 of file Entity.cpp.
References clang::FunctionDecl::getStorageClass(), clang::SC_Static, and VisitNamedDecl().
Definition at line 87 of file Entity.cpp.
References clang::idx::GlobalSelector::get(), clang::IdentifierTable::get(), clang::DeclarationName::getAsIdentifierInfo(), clang::idx::GlobalSelector::getAsOpaquePtr(), clang::Decl::getDeclContext(), clang::NamedDecl::getDeclName(), getEntity(), clang::Decl::getIdentifierNamespace(), clang::idx::ProgramImpl::getIdents(), clang::DeclarationName::getObjCSelector(), clang::ObjCMethodDecl::isInstanceMethod(), clang::idx::Entity::isInternalToTU(), clang::idx::Entity::isInvalid(), clang::Selector::isNull(), clang::DeclContext::isTranslationUnit(), clang::idx::Entity::isValid(), and clang::DeclVisitor< EntityGetter, Entity >::Visit().
Referenced by VisitFunctionDecl(), and VisitVarDecl().
Definition at line 156 of file Entity.cpp.
Definition at line 131 of file Entity.cpp.
References clang::VarDecl::getStorageClass(), clang::VarDecl::hasLocalStorage(), clang::SC_Static, and VisitNamedDecl().