Pretty‐printer for DWARF type DIEs, formatting names in a C++‐like style.

Synopsis

Declared in <llvm/DebugInfo/DWARF/DWARFTypePrinter.h>

template<typename DieType>
struct DWARFTypePrinter;

Member Functions

Name

Description

DWARFTypePrinter [constructor]

Construct a type printer that writes to OS.

appendAndTerminateTemplateParameters

Append template parameters for D and close the argument list with '>'.

appendArrayType

Append array dimension bounds for the array type DIE D.

appendConstVolatileQualifierAfter

Append the trailing name for a const and/or volatile qualified type N.

appendConstVolatileQualifierBefore

Append the leading name for a const and/or volatile qualified type N.

appendPointerLikeTypeBefore

Append the prefix of a pointer‐like type using the operator string Ptr.

appendQualifiedName

Append the fully qualified name of type DIE D.

appendQualifiedNameBefore

Append scopes and the leading portion of the qualified name for D.

appendScopes

Append enclosing scope names for D, each followed by "::".

appendSubroutineNameAfter

Append the parameter list and trailing qualifiers of a subroutine type.

appendTemplateParameters

Append template parameter list contents for template DIE D.

appendTypeTagName

Dump the name encoded in the type tag.

appendUnqualifiedName

Recursively append the DIE type name when applicable.

appendUnqualifiedNameAfter

Append the trailing portion of an unqualified type name for D.

appendUnqualifiedNameBefore

Append the leading portion of an unqualified type name for D.

decomposeConstVolatile

Split const/volatile wrappers from N into T, C, and V.

needsParens

True if printing a pointer/reference to D requires parentheses.

skipQualifiers

Skip const and volatile qualifier DIEs wrapping D.

Data Members

Name

Description

EndedWithTemplate

True if the last printed token ended with a template argument list.

OS

Output stream that receives the formatted type name.

Word

True if the next token should be preceded by a space when needed.

Template Parameters

Name

Description

DieType

DIE type used for traversal and type resolution.

Created with MrDocs