LLDB  mainline
Static Public Member Functions | List of all members
lldb_private::ClangUtil Struct Reference

#include <ClangUtil.h>

Static Public Member Functions

static bool IsClangType (const CompilerType &ct)
 
static clang::Decl * GetDecl (const CompilerDecl &decl)
 Returns the clang::Decl of the given CompilerDecl. More...
 
static clang::QualType GetQualType (const CompilerType &ct)
 
static clang::QualType GetCanonicalQualType (const CompilerType &ct)
 
static CompilerType RemoveFastQualifiers (const CompilerType &ct)
 
static clang::TagDecl * GetAsTagDecl (const CompilerType &type)
 
static std::string DumpDecl (const clang::Decl *d)
 Returns a textual representation of the given Decl's AST. More...
 
static std::string ToString (const clang::Type *t)
 Returns a textual representation of the given type. More...
 
static std::string ToString (const CompilerType &c)
 Returns a textual representation of the given CompilerType (assuming its underlying type is a Clang type). More...
 

Detailed Description

Definition at line 24 of file ClangUtil.h.

Member Function Documentation

◆ DumpDecl()

std::string ClangUtil::DumpDecl ( const clang::Decl *  d)
static

◆ GetAsTagDecl()

clang::TagDecl * ClangUtil::GetAsTagDecl ( const CompilerType type)
static

Definition at line 60 of file ClangUtil.cpp.

Referenced by lldb_private::TypeSystemClang::GetAsTagDecl().

◆ GetCanonicalQualType()

QualType ClangUtil::GetCanonicalQualType ( const CompilerType ct)
static

◆ GetDecl()

clang::Decl * ClangUtil::GetDecl ( const CompilerDecl decl)
static

Returns the clang::Decl of the given CompilerDecl.

CompilerDecl has to be valid and represent a clang::Decl.

Definition at line 31 of file ClangUtil.cpp.

References lldb_private::CompilerDecl::GetOpaqueDecl(), and lldb_private::CompilerDecl::GetTypeSystem().

Referenced by lldb_private::ClangDeclVendor::FindDecls(), and lldb_private::npdb::PdbAstBuilder::FromCompilerDecl().

◆ GetQualType()

QualType ClangUtil::GetQualType ( const CompilerType ct)
static

Definition at line 36 of file ClangUtil.cpp.

References lldb_private::CompilerType::GetOpaqueQualType().

Referenced by lldb_private::TypeSystemClang::AddFieldToRecordType(), lldb_private::TypeSystemClang::AddMethodToCXXRecordType(), lldb_private::TypeSystemClang::AddMethodToObjCObjectType(), lldb_private::TypeSystemClang::AddObjCClassProperty(), lldb_private::TypeSystemClang::AddVariableToRecordType(), lldb_private::TypeSystemClang::AreTypesSame(), lldb_private::AppleObjCTypeEncodingParser::BuildAggregate(), lldb_private::AppleObjCTypeEncodingParser::BuildArray(), ObjCRuntimeMethodType::BuildMethod(), lldb_private::AppleObjCTypeEncodingParser::BuildObjCObjectPointerType(), lldb_private::TypeSystemClang::CompleteTagDeclarationDefinition(), lldb_private::ClangASTImporter::CopyType(), lldb_private::TypeSystemClang::CreateArrayType(), lldb_private::TypeSystemClang::CreateEnumerationType(), lldb_private::TypeSystemClang::CreateFunctionDeclaration(), lldb_private::TypeSystemClang::CreateFunctionType(), lldb_private::TypeSystemClang::CreateMemberPointerType(), lldb_private::TypeSystemClang::CreateParameterDeclaration(), lldb_private::ClangASTImporter::DeportType(), lldb_private::TypeSystemClang::DumpFromSymbolFile(), lldb_private::TypeSystemClang::DumpTypeDescription(), lldb_private::ClangASTSource::FindCompleteType(), lldb_private::AppleObjCDeclVendor::FinishDecl(), lldb_private::TypeSystemClang::GetAsTypedefDecl(), lldb_private::TypeSystemClang::GetBuiltinTypeForDWARFEncodingAndBitSize(), lldb_private::TypeSystemClang::GetDeclarationName(), lldb_private::TypeSystemClang::GetDeclContextForType(), lldb_private::TypeSystemClang::GetEnumerationIntegerType(), lldb_private::ClangASTSource::GuardedCopyType(), lldb_private::ClangExpressionDeclMap::LookUpLldbClass(), IRForTarget::MaybeHandleVariable(), and lldb_private::TypeSystemClang::StartTagDeclarationDefinition().

◆ IsClangType()

bool ClangUtil::IsClangType ( const CompilerType ct)
static

◆ RemoveFastQualifiers()

CompilerType ClangUtil::RemoveFastQualifiers ( const CompilerType ct)
static

◆ ToString() [1/2]

std::string ClangUtil::ToString ( const clang::Type *  t)
static

Returns a textual representation of the given type.

Definition at line 81 of file ClangUtil.cpp.

Referenced by lldb_private::ClangExpressionDeclMap::AddContextClassType(), and lldb_private::ClangExpressionDeclMap::LookUpLldbObjCClass().

◆ ToString() [2/2]

std::string ClangUtil::ToString ( const CompilerType c)
static

Returns a textual representation of the given CompilerType (assuming its underlying type is a Clang type).

Definition at line 85 of file ClangUtil.cpp.


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