clang API Documentation

Public Member Functions | Static Public Member Functions
clang::idx::EntityImpl Class Reference

#include <EntityImpl.h>

Inheritance diagram for clang::idx::EntityImpl:
Inheritance graph
[legend]
Collaboration diagram for clang::idx::EntityImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EntityImpl (Entity parent, DeclarationName name, unsigned idNS, bool isObjCInstanceMethod)
DeclgetDecl (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)

Detailed Description

Definition at line 27 of file EntityImpl.h.


Constructor & Destructor Documentation

clang::idx::EntityImpl::EntityImpl ( Entity  parent,
DeclarationName  name,
unsigned  idNS,
bool  isObjCInstanceMethod 
) [inline]

Definition at line 39 of file EntityImpl.h.


Member Function Documentation

Entity EntityImpl::get ( Decl D,
Program Prog,
ProgramImpl ProgImpl 
) [static]

Get an Entity associated with the given Decl.

Returns:
Null if an Entity cannot refer to this 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)
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]

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