class TypeSourceInfo

Declaration

class TypeSourceInfo { /* full declaration omitted */ };

Description

A container of type source information. A client can read the relevant info using TypeLoc wrappers, e.g:

Declared at: clang/include/clang/AST/Type.h:6530

Member Variables

private clang::QualType Ty

Method Overview

Methods

TypeSourceInfo(clang::QualType ty)

Declared at: clang/include/clang/AST/Type.h:6537

Parameters

clang::QualType ty

clang::QualType getType() const

Description

Return the type wrapped by this type source info.

Declared at: clang/include/clang/AST/Type.h:6541

clang::TypeLoc getTypeLoc() const

Description

Return the TypeLoc wrapper for the type source info.

Declared at: clang/include/clang/AST/Type.h:6544

void overrideType(clang::QualType T)

Description

Override the type stored in this TypeSourceInfo. Use with caution!

Declared at: clang/include/clang/AST/Type.h:6547

Parameters

clang::QualType T