|
| TokenStreamWithCallback (PPTy &pp, PrintEventAndStorageListener< CallableType, DataType > &saver, bool enableCallback) |
|
void | addCallback (DataType d) |
| Add a Callback token. More...
|
|
| TokenStream (PrettyPrinter &pp, TokenStringSaver &saver) |
| Create a TokenStream using the specified PrettyPrinter and StringSaver storage. More...
|
|
TokenStream & | operator<< (const char *s) |
| Add a string literal (external storage). More...
|
|
TokenStream & | operator<< (StringRef s) |
| Add a string token (saved to storage). More...
|
|
TokenStream & | operator<< (const PPExtString &str) |
| String has external storage. More...
|
|
TokenStream & | operator<< (const PPSaveString &str) |
| String must be saved. More...
|
|
TokenStream & | operator<< (PP s) |
| Convenience for inline streaming of builder methods. More...
|
|
TokenStream & | operator<< (Token t) |
| Stream support for user-created Token's. More...
|
|
TokenStream & | addAsString (T &&t) |
| General-purpose "format this" helper, for types not supported by operator<< yet. More...
|
|
auto | invokeWithStringOS (Callable &&c) |
| Helper to invoke code with a llvm::raw_ostream argument for compatibility. More...
|
|
TokenStream & | writeEscaped (StringRef str, bool useHexEscapes=false) |
| Write escaped versions of the string, saved in storage. More...
|
|
TokenStream & | writeQuotedEscaped (StringRef str, bool useHexEscapes=false, StringRef left="\"", StringRef right="\"") |
|
auto | scopedBox (T &&t, Callable &&c, Token close=EndToken()) |
| Open a box, invoke the lambda, and close it after. More...
|
|
| TokenBuilder (PrettyPrinter &pp) |
|
std::enable_if_t< std::is_base_of_v< Token, T > > | add (Args &&...args) |
| Add new token. More...
|
|
void | addToken (Token t) |
|
void | eof () |
| End of a stream. More...
|
|
void | literal (StringRef str) |
| Add a literal (with external storage). More...
|
|
void | nbsp () |
| Add a non-breaking space. More...
|
|
void | nbsp (unsigned n) |
| Add multiple non-breaking spaces as a single token. More...
|
|
void | neverbreak () |
| Add a 'neverbreak' break. Always 'fits'. More...
|
|
void | newline () |
| Add a newline (break too wide to fit, always breaks). More...
|
|
void | spaces (uint32_t n) |
| Add breakable spaces. More...
|
|
void | space () |
| Add a breakable space. More...
|
|
void | zerobreak () |
| Add a break that is zero-wide if not broken. More...
|
|
void | bbox (int32_t offset=0, Breaks breaks=Breaks::Consistent) |
| Start a IndentStyle::Block group with specified offset. More...
|
|
void | cbox (int32_t offset=0, IndentStyle style=IndentStyle::Visual) |
| Start a consistent group with specified offset. More...
|
|
void | ibox (int32_t offset=0, IndentStyle style=IndentStyle::Visual) |
| Start an inconsistent group with specified offset. More...
|
|
void | neverbox () |
| Start a group that cannot break, including nested groups. More...
|
|
void | end () |
| End a group. More...
|
|
template<typename CallableType, typename DataType, typename PPTy = PrettyPrinter>
class circt::pretty::TokenStreamWithCallback< CallableType, DataType, PPTy >
Wrap the TokenStream with a helper for CallbackTokens, to record the print events on the stream.
Definition at line 378 of file PrettyPrinterHelpers.h.