GCC Middle and Back End API Reference
diagnostics::changes Namespace Reference

Data Structures

class  added_line
class  change_set
class  changed_file
class  changed_line
class  diff
class  line_event

Functions

static void print_diff_line (pretty_printer *pp, char prefix_char, const char *line, int line_size)
static int line_comparator (int a, int b)

Function Documentation

◆ line_comparator()

int diagnostics::changes::line_comparator ( int a,
int b )
static
Implementation of class changed_file.   
Callback for m_changed_lines, for comparing line numbers.   

References a, and b.

Referenced by diagnostics::changes::changed_file::changed_file().

◆ print_diff_line()

void diagnostics::changes::print_diff_line ( pretty_printer * pp,
char prefix_char,
const char * line,
int len )
static
Forward decls.   
Print one line within a diff, starting with PREFIX_CHAR,
followed by the LINE of content, of length LEN.  LINE is
not necessarily 0-terminated.  Print a trailing newline.   

References i, and pp_character().

Referenced by diagnostics::changes::changed_file::print_diff_hunk(), diagnostics::changes::changed_line::print_diff_lines(), and diagnostics::changes::changed_file::print_run_of_changed_lines().