llvm::ScopedPrinter

Pretty-printer that emits indented, labeled text with nested scopes.

Synopsis

Declared in <llvm/Support/ScopedPrinter.h>

class ScopedPrinter;

Enums

NameDescription
ScopedPrinterKind Discriminator for ScopedPrinter subclasses used with LLVM RTTI.

Member Functions

NameDescription
ScopedPrinter [constructor]Construct a scoped printer writing to OS.
~ScopedPrinter [destructor] [virtual]Destroy the scoped printer.
arrayBegin arrayBegin overloads
arrayEnd [virtual]End the current array scope.
flush Flush the underlying output stream.
getIndentLevel Return the current indentation level.
getKind Return the RTTI kind of this printer.
getOStream [virtual]Return the underlying output stream.
hex Wrap Value as a HexNumber for hexadecimal printing.
indent Increase the indentation level by Levels.
objectBegin objectBegin overloads
objectEnd [virtual]End the current object scope.
printBinary printBinary overloads
printBinaryBlock printBinaryBlock overloads
printBoolean [virtual]Print a labeled boolean as Yes or No.
printEnum Print an enumeration value by name when known, otherwise as hex.
printFlags printFlags overloads
printHex printHex overloads
printHexList Print a labeled list of values in hexadecimal.
printIndent Print the current prefix and indentation whitespace.
printList printList overloads
printNumber printNumber overloads
printObject Print a labeled object by converting it to a string.
printString printString overloads
printStringEscaped Print a labeled string with C-style escapes.
printSymbolOffset Print a labeled symbol name plus hexadecimal offset.
printVersion Print a labeled dotted version number.
resetIndent Reset the indentation level to zero.
setPrefix Set the prefix printed before each indented line.
startLine [virtual]Start a new indented line and return the output stream.
unindent Decrease the indentation level by Levels.

Static Member Functions

NameDescription
classof Return true if SP is a base ScopedPrinter.

Non-Member Functions

NameDescription
codeview::printTypeIndexPrint TypeIndex TI named FieldName to Printer using Types.

Derived Classes

NameDescription
JSONScopedPrinter Scoped printer that emits JSON objects and arrays.