1 #ifndef LINE_DESPATCH_H
2 #define LINE_DESPATCH_H
98 static void substitute(std::string
const & replacement);
111 static std::string
pretty();
static parsed_line & cur_line()
Get a reference to the current output line.
static void print()
Print the current output line.
static void substitute(std::string const &replacement)
Substitute a diagnostic insert for the line in the line-buffer and print it to output.
static line_type next()
Process the current input line and return its line type.
static unsigned & lines_changed()
Get a reference to the count of changed lines.
static unsigned & lines_suppressed()
Get a reference to the count of suppressed lines.
static std::unique_ptr< parsed_line > _cur_line_
The current output line.
static void top()
Reinitialize the class static state.
static void drop()
Drop the current output line.
line_type
Enumeration of types of input lines.
static unsigned _lines_changed_
Number of input lines changed.
static std::string pretty()
Get a pretty printable version of the current input line.
Manages printing, discarding and replacement of lines.
static unsigned _lines_suppressed_
Number of input lines suppressed.