clang  6.0.0svn
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::GlobalDecl Class Reference

GlobalDecl - represents a global declaration. More...

#include "clang/AST/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 OMPDeclareReductionDecl *D)
 
 GlobalDecl (const CXXConstructorDecl *D, CXXCtorType Type)
 
 GlobalDecl (const CXXDestructorDecl *D, CXXDtorType Type)
 
GlobalDecl getCanonicalDecl () const
 
const DeclgetDecl () 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)
 

Detailed Description

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 29 of file GlobalDecl.h.

Constructor & Destructor Documentation

◆ GlobalDecl() [1/9]

clang::GlobalDecl::GlobalDecl ( )
inline

Definition at line 40 of file GlobalDecl.h.

◆ GlobalDecl() [2/9]

clang::GlobalDecl::GlobalDecl ( const VarDecl D)
inline

Definition at line 42 of file GlobalDecl.h.

◆ GlobalDecl() [3/9]

clang::GlobalDecl::GlobalDecl ( const FunctionDecl D)
inline

Definition at line 43 of file GlobalDecl.h.

◆ GlobalDecl() [4/9]

clang::GlobalDecl::GlobalDecl ( const BlockDecl D)
inline

Definition at line 44 of file GlobalDecl.h.

◆ GlobalDecl() [5/9]

clang::GlobalDecl::GlobalDecl ( const CapturedDecl D)
inline

Definition at line 45 of file GlobalDecl.h.

◆ GlobalDecl() [6/9]

clang::GlobalDecl::GlobalDecl ( const ObjCMethodDecl D)
inline

Definition at line 46 of file GlobalDecl.h.

◆ GlobalDecl() [7/9]

clang::GlobalDecl::GlobalDecl ( const OMPDeclareReductionDecl D)
inline

Definition at line 47 of file GlobalDecl.h.

◆ GlobalDecl() [8/9]

clang::GlobalDecl::GlobalDecl ( const CXXConstructorDecl D,
CXXCtorType  Type 
)
inline

Definition at line 49 of file GlobalDecl.h.

◆ GlobalDecl() [9/9]

clang::GlobalDecl::GlobalDecl ( const CXXDestructorDecl D,
CXXDtorType  Type 
)
inline

Definition at line 51 of file GlobalDecl.h.

Member Function Documentation

◆ getAsOpaquePtr()

void* clang::GlobalDecl::getAsOpaquePtr ( ) const
inline

Definition at line 78 of file GlobalDecl.h.

Referenced by llvm::DenseMapInfo< clang::GlobalDecl >::getHashValue().

◆ getCanonicalDecl()

GlobalDecl clang::GlobalDecl::getCanonicalDecl ( ) const
inline

◆ getCtorType()

CXXCtorType clang::GlobalDecl::getCtorType ( ) const
inline

◆ getDecl()

const Decl* clang::GlobalDecl::getDecl ( ) const
inline

Definition at line 62 of file GlobalDecl.h.

Referenced by clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), clang::CodeGen::CodeGenFunction::BuildFunctionArgList(), clang::CodeGen::CGCXXABI::buildThisParam(), clang::CodeGen::CodeGenModule::CreateFunctionTypeMetadata(), emitConstructorDestructorAlias(), clang::CodeGen::CodeGenModule::EmitGlobal(), EmitGlobalDeclMetadata(), emitRTtypeidCall(), clang::CodeGen::emitTargetFunctions(), clang::CodeGen::emitTargetGlobal(), clang::CodeGen::emitTargetGlobalVariable(), 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::VTableContextBase::getThunkInfo(), clang::MicrosoftVTableContext::getThunkInfo(), clang::CodeGen::CodeGenFunction::GetVTTParameter(), clang::CodeGen::CodeGenModule::HandleCXXStaticMemberVarInstantiation(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), isDeletingDtor(), clang::CodeGen::CodeGenModule::isTypeConstant(), performTypeAdjustment(), clang::CodeGen::CodeGenModule::setFunctionDLLStorageClass(), setThunkProperties(), clang::CodeGen::CodeGenFunction::StartFunction(), clang::CodeGen::CodeGenFunction::StartThunk(), and clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias().

◆ getDtorType()

CXXDtorType clang::GlobalDecl::getDtorType ( ) const
inline

◆ getFromOpaquePtr()

static GlobalDecl clang::GlobalDecl::getFromOpaquePtr ( void *  P)
inlinestatic

◆ getWithDecl()

GlobalDecl clang::GlobalDecl::getWithDecl ( const Decl D)
inline

Definition at line 86 of file GlobalDecl.h.

References clang::Result.

Friends And Related Function Documentation

◆ operator==

bool operator== ( const GlobalDecl LHS,
const GlobalDecl RHS 
)
friend

Definition at line 74 of file GlobalDecl.h.


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