Scoped printer that emits JSON objects and arrays.
Synopsis
Declared in <llvm/Support/ScopedPrinter.h>
class JSONScopedPrinter
: public ScopedPrinter
Base Classes
Name |
Description |
Pretty‐printer that emits indented, labeled text with nested scopes. |
Enums
Name |
Description |
Discriminator for |
Member Functions
Name |
Description |
|
Construct a JSON scoped printer writing to |
|
|
|
End the current JSON array. |
Flush the underlying output stream. |
|
Return the current indentation level. |
|
Return the RTTI kind of this printer. |
|
|
Return the underlying output stream. |
Wrap |
|
Increase the indentation level by |
|
|
|
|
End the current JSON object. |
|
|
|
|
|
Print a labeled boolean as a JSON attribute. |
Print an enumeration value by name when known, otherwise as hex. |
|
|
|
|
|
Print a labeled list of values in hexadecimal. |
|
Print the current prefix and indentation whitespace. |
|
|
|
|
|
Print a labeled object by converting it to a string. |
|
|
|
Print a labeled string with C‐style escapes. |
|
Print a labeled symbol name plus hexadecimal offset. |
|
Print a labeled dotted version number. |
|
Reset the indentation level to zero. |
|
Set the prefix printed before each indented line. |
|
|
Start a new indented line and return the output stream. |
Decrease the indentation level by |
Static Member Functions
Name |
Description |
Return true if |
Non-Member Functions
Name |
Description |
Print TypeIndex |
Created with MrDocs