coan
6.0.1
A C/C++ Configuration Analyzer
|
Manages printing, discarding and replacement of lines. More...
#include <line_despatch.h>
Static Public Member Functions | |
static void | top () |
Reinitialize the class static state. | |
static parsed_line & | cur_line () |
Get a reference to the current output line. | |
static void | drop () |
Drop the current output line. | |
static void | print () |
Print the current output line. | |
static line_type | next () |
Process the current input line and return its line type. More... | |
static void | substitute (std::string const &replacement) |
Substitute a diagnostic insert for the line in the line-buffer and print it to output. More... | |
static unsigned & | lines_suppressed () |
Get a reference to the count of suppressed lines. | |
static unsigned & | lines_changed () |
Get a reference to the count of changed lines. | |
static std::string | pretty () |
Get a pretty printable version of the current input line. | |
Static Private Attributes | |
static unsigned | _lines_suppressed_ |
Number of input lines suppressed. | |
static unsigned | _lines_changed_ |
Number of input lines changed. | |
static std::unique_ptr < parsed_line > | _cur_line_ |
The current output line. | |
Manages printing, discarding and replacement of lines.
struct line_despatch
manages the printing of lines selected or generated for output and the dropping or replacing of lines not selected for output.
Definition at line 62 of file line_despatch.h.
|
static |
Process the current input line and return its line type.
line_type
of the current input line. Definition at line 75 of file line_despatch.cpp.
|
static |
Substitute a diagnostic insert for the line in the line-buffer and print it to output.
replacement | The diagnostic insert to print. |
Depending on the policy selected by the specified or default value of the --conflict option
, a #define
or #undef
directive read from input that contradicts one of the --define
or --undefine
options may be replaced on output with a diagnostic comment or a diagnostic error
directive.
Definition at line 66 of file line_despatch.cpp.