Ppconfig Reference

_images/ditaa-82f56480f17ed9379c5bed9a2179cb1af2511c05.png
#include <xo/indentlog/ppconfig.hpp>

Class

Configuration for pretty printing

class ppconfig

hold pretty-printer control parameters

Need one read-only instance of this to invoke pretty printer

Member Variables

group ppconfig instance variables

Variables

std::uint32_t right_margin_ = 80

max line length. Pretty-printer will introduce newlines if needed to stay to the left of this margin

std::uint32_t indent_width_ = 2

amount of additional indent per nesting level

std::uint32_t assert_indent_threshold = 10000

assert if attempting this much indent