GCC Middle and Back End API Reference
libgdiagnostics::manager Class Reference

#include <libgdiagnostics++.h>

Collaboration diagram for libgdiagnostics::manager:

Public Member Functions

 manager ()
 
 manager (diagnostic_manager *inner, bool owned)
 
 ~manager ()
 
 manager (const manager &other)=delete
 
 manager (manager &&other)
 
void set_tool_name (const char *value)
 
void set_full_name (const char *value)
 
void set_version_string (const char *value)
 
void set_version_url (const char *value)
 
text_sink add_text_sink (FILE *dst_stream, enum diagnostic_colorize colorize)
 
void add_sarif_sink (FILE *dst_stream, file main_input_file, enum diagnostic_sarif_version version)
 
void write_patch (FILE *dst_stream)
 
file new_file (const char *name, const char *sarif_source_language) LIBGDIAGNOSTICS_PARAM_CAN_BE_NULL(3)
 
void debug_dump (file f, FILE *out)
 
physical_location new_location_from_file_and_line (file f, diagnostic_line_num_t line_num)
 
physical_location new_location_from_file_line_column (file f, line_num_t line_num, column_num_t column_num)
 
physical_location new_location_from_range (physical_location loc_caret, physical_location loc_start, physical_location loc_end)
 
void debug_dump (physical_location loc, FILE *out)
 
logical_location new_logical_location (enum diagnostic_logical_location_kind_t kind, logical_location parent, const char *short_name, const char *fully_qualified_name, const char *decorated_name)
 
void debug_dump (logical_location loc, FILE *out)
 
execution_path new_execution_path ()
 
diagnostic begin_diagnostic (enum diagnostic_level level)
 

Data Fields

diagnostic_managerm_inner
 
bool m_owned
 

Detailed Description

Wrapper around a diagnostic_manager *, possibly with ownership.   

Constructor & Destructor Documentation

◆ manager() [1/4]

libgdiagnostics::manager::manager ( )
inline

◆ manager() [2/4]

libgdiagnostics::manager::manager ( diagnostic_manager * inner,
bool owned )
inline

◆ ~manager()

libgdiagnostics::manager::~manager ( )
inline

◆ manager() [3/4]

libgdiagnostics::manager::manager ( const manager & other)
delete

◆ manager() [4/4]

libgdiagnostics::manager::manager ( manager && other)
inline

Member Function Documentation

◆ add_sarif_sink()

void libgdiagnostics::manager::add_sarif_sink ( FILE * dst_stream,
file main_input_file,
enum diagnostic_sarif_version version )
inline

◆ add_text_sink()

text_sink libgdiagnostics::manager::add_text_sink ( FILE * dst_stream,
enum diagnostic_colorize colorize )
inline

◆ begin_diagnostic()

diagnostic libgdiagnostics::manager::begin_diagnostic ( enum diagnostic_level level)
inline

References diagnostic_begin(), and m_inner.

Referenced by main(), and parse_options().

◆ debug_dump() [1/3]

void libgdiagnostics::manager::debug_dump ( file f,
FILE * out )

◆ debug_dump() [2/3]

void libgdiagnostics::manager::debug_dump ( logical_location loc,
FILE * out )
inline

◆ debug_dump() [3/3]

void libgdiagnostics::manager::debug_dump ( physical_location loc,
FILE * out )
inline

◆ new_execution_path()

execution_path libgdiagnostics::manager::new_execution_path ( )
inline

◆ new_file()

file libgdiagnostics::manager::new_file ( const char * name,
const char * sarif_source_language )
inline

◆ new_location_from_file_and_line()

physical_location libgdiagnostics::manager::new_location_from_file_and_line ( file f,
diagnostic_line_num_t line_num )
inline

◆ new_location_from_file_line_column()

physical_location libgdiagnostics::manager::new_location_from_file_line_column ( file f,
line_num_t line_num,
column_num_t column_num )
inline

◆ new_location_from_range()

physical_location libgdiagnostics::manager::new_location_from_range ( physical_location loc_caret,
physical_location loc_start,
physical_location loc_end )
inline

◆ new_logical_location()

logical_location libgdiagnostics::manager::new_logical_location ( enum diagnostic_logical_location_kind_t kind,
logical_location parent,
const char * short_name,
const char * fully_qualified_name,
const char * decorated_name )
inline

◆ set_full_name()

void libgdiagnostics::manager::set_full_name ( const char * value)
inline

◆ set_tool_name()

void libgdiagnostics::manager::set_tool_name ( const char * value)
inline

◆ set_version_string()

void libgdiagnostics::manager::set_version_string ( const char * value)
inline

◆ set_version_url()

void libgdiagnostics::manager::set_version_url ( const char * value)
inline

◆ write_patch()

void libgdiagnostics::manager::write_patch ( FILE * dst_stream)
inline

Field Documentation

◆ m_inner

◆ m_owned

bool libgdiagnostics::manager::m_owned

The documentation for this class was generated from the following file: