clang API Documentation
#include <GlobalDecl.h>
Public Member Functions | |
GlobalDecl () | |
GlobalDecl (const VarDecl *D) | |
GlobalDecl (const FunctionDecl *D) | |
GlobalDecl (const BlockDecl *D) | |
GlobalDecl (const CapturedDecl *D) | |
GlobalDecl (const ObjCMethodDecl *D) | |
GlobalDecl (const CXXConstructorDecl *D, CXXCtorType Type) | |
GlobalDecl (const CXXDestructorDecl *D, CXXDtorType Type) | |
GlobalDecl | getCanonicalDecl () const |
const Decl * | getDecl () const |
CXXCtorType | getCtorType () const |
CXXDtorType | getDtorType () const |
void * | getAsOpaquePtr () const |
GlobalDecl | getWithDecl (const Decl *D) |
Static Public Member Functions | |
static GlobalDecl | getFromOpaquePtr (void *P) |
Friends | |
bool | operator== (const GlobalDecl &LHS, const GlobalDecl &RHS) |
GlobalDecl - represents a global declaration. This can either be a CXXConstructorDecl and the constructor type (Base, Complete). a CXXDestructorDecl and the destructor type (Base, Complete) or a VarDecl, a FunctionDecl or a BlockDecl.
Definition at line 28 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | ) | [inline] |
Definition at line 39 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const VarDecl * | D | ) | [inline] |
Definition at line 41 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const FunctionDecl * | D | ) | [inline] |
Definition at line 42 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const BlockDecl * | D | ) | [inline] |
Definition at line 43 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const CapturedDecl * | D | ) | [inline] |
Definition at line 44 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const ObjCMethodDecl * | D | ) | [inline] |
Definition at line 45 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const CXXConstructorDecl * | D, |
CXXCtorType | Type | ||
) | [inline] |
Definition at line 47 of file GlobalDecl.h.
clang::GlobalDecl::GlobalDecl | ( | const CXXDestructorDecl * | D, |
CXXDtorType | Type | ||
) | [inline] |
Definition at line 49 of file GlobalDecl.h.
void* clang::GlobalDecl::getAsOpaquePtr | ( | ) | const [inline] |
Definition at line 76 of file GlobalDecl.h.
Referenced by llvm::DenseMapInfo< clang::GlobalDecl >::getHashValue().
GlobalDecl clang::GlobalDecl::getCanonicalDecl | ( | ) | const [inline] |
Definition at line 52 of file GlobalDecl.h.
Referenced by BuildAppleKextVirtualCall(), and clang::CodeGen::CodeGenModule::getMangledName().
CXXCtorType clang::GlobalDecl::getCtorType | ( | ) | const [inline] |
Definition at line 62 of file GlobalDecl.h.
References getDecl().
Referenced by clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), clang::CodeGen::CodeGenPGO::checkGlobalDecl(), clang::CodeGen::CodeGenFunction::EmitConstructorBody(), clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(), clang::CodeGen::CodeGenFunction::EmitDelegatingCXXConstructorCall(), clang::CodeGen::CodeGenModule::GetAddrOfGlobal(), clang::CodeGen::CodeGenModule::getBlockMangledName(), and clang::CodeGen::CodeGenModule::getMangledName().
const Decl* clang::GlobalDecl::getDecl | ( | ) | const [inline] |
Definition at line 60 of file GlobalDecl.h.
Referenced by clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), clang::CodeGen::CGCXXABI::buildThisParam(), clang::CodeGen::CodeGenPGO::checkGlobalDecl(), clang::CodeGen::CodeGenVTables::CreateVTableInitializer(), clang::CodeGen::CodeGenFunction::EmitAsanPrologueOrEpilogue(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenFunction::EmitConstructorBody(), emitConstructorDestructorAlias(), clang::CodeGen::CodeGenFunction::EmitDestructorBody(), clang::CodeGen::CGDebugInfo::EmitFunctionStart(), clang::CodeGen::CodeGenModule::EmitGlobal(), EmitGlobalDeclMetadata(), clang::CodeGen::CodeGenFunction::emitImplicitAssignmentOperatorBody(), clang::CodeGen::CodeGenFunction::EmitLambdaToBlockPointerBody(), clang::CodeGen::CodeGenVTables::EmitThunks(), clang::CodeGen::CodeGenFunction::GenerateCode(), clang::CodeGen::CodeGenFunction::GenerateThunk(), clang::CodeGen::CodeGenFunction::GenerateVarArgsThunk(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::CodeGen::CodeGenModule::GetAddrOfGlobal(), clang::CodeGen::CodeGenModule::GetAddrOfThunk(), clang::CodeGen::CodeGenModule::getBlockMangledName(), getCtorType(), getDtorType(), clang::CodeGen::CodeGenModule::getFunctionLinkage(), clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(), clang::CodeGen::CodeGenModule::getMangledName(), clang::MicrosoftVTableContext::getMethodVFTableLocation(), clang::ItaniumVTableContext::getMethodVTableIndex(), clang::CodeGen::CodeGenModule::getOrCreateStaticVarDecl(), clang::VTableContextBase::getThunkInfo(), clang::MicrosoftVTableContext::getThunkInfo(), clang::CodeGen::CodeGenFunction::GetVTTParameter(), isDeletingDtor(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::CodeGen::CodeGenFunction::StartThunk(), and clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias().
CXXDtorType clang::GlobalDecl::getDtorType | ( | ) | const [inline] |
Definition at line 67 of file GlobalDecl.h.
References getDecl().
Referenced by clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), clang::CodeGen::CodeGenPGO::checkGlobalDecl(), clang::CodeGen::CodeGenFunction::EmitDestructorBody(), clang::CodeGen::CodeGenVTables::EmitThunks(), clang::CodeGen::CodeGenModule::GetAddrOfGlobal(), clang::CodeGen::CodeGenModule::GetAddrOfThunk(), clang::CodeGen::CodeGenModule::getBlockMangledName(), clang::CodeGen::CodeGenModule::getFunctionLinkage(), clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(), clang::CodeGen::CodeGenModule::getMangledName(), clang::MicrosoftVTableContext::getMethodVFTableLocation(), clang::MicrosoftVTableContext::getThunkInfo(), and isDeletingDtor().
static GlobalDecl clang::GlobalDecl::getFromOpaquePtr | ( | void * | P | ) | [inline, static] |
Definition at line 78 of file GlobalDecl.h.
Referenced by llvm::DenseMapInfo< clang::GlobalDecl >::getTombstoneKey().
GlobalDecl clang::GlobalDecl::getWithDecl | ( | const Decl * | D | ) | [inline] |
Definition at line 84 of file GlobalDecl.h.
bool operator== | ( | const GlobalDecl & | LHS, |
const GlobalDecl & | RHS | ||
) | [friend] |
Definition at line 72 of file GlobalDecl.h.