56 qual_type.removeLocalFastQualifiers();
62 if (qual_type.isNull())
65 return qual_type->getAsTagDecl();
73 llvm::raw_string_ostream stream(result);
74 bool deserialize =
false;
75 d->dump(stream, deserialize);
82 return clang::QualType(t, 0).getAsString();
Represents a generic declaration such as a function declaration.
void * GetOpaqueDecl() const
TypeSystem * GetTypeSystem() const
std::shared_ptr< TypeSystemType > dyn_cast_or_null()
Return a shared_ptr<TypeSystemType> if dyn_cast succeeds.
Generic representation of a type in a programming language.
TypeSystemSPWrapper GetTypeSystem() const
Accessors.
lldb::opaque_compiler_type_t GetOpaqueQualType() const
A TypeSystem implementation based on Clang.
A class that represents a running process on the host machine.
static clang::QualType GetQualType(const CompilerType &ct)
static std::string ToString(const clang::Type *t)
Returns a textual representation of the given type.
static std::string DumpDecl(const clang::Decl *d)
Returns a textual representation of the given Decl's AST.
static clang::Decl * GetDecl(const CompilerDecl &decl)
Returns the clang::Decl of the given CompilerDecl.
static clang::QualType GetCanonicalQualType(const CompilerType &ct)
static bool IsClangType(const CompilerType &ct)
static CompilerType RemoveFastQualifiers(const CompilerType &ct)
static clang::TagDecl * GetAsTagDecl(const CompilerType &type)