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

#include <libgdiagnostics++.h>

Collaboration diagram for libgdiagnostics::diagnostic:

Public Member Functions

 diagnostic (::diagnostic *d)
 
void set_cwe (unsigned cwe_id)
 
void add_rule (const char *title, const char *url)
 
void set_location (physical_location loc)
 
void add_location_with_label (physical_location loc, const char *text)
 
void set_logical_location (logical_location loc)
 
void add_fix_it_hint_insert_before (physical_location loc, const char *addition)
 
void add_fix_it_hint_insert_after (physical_location loc, const char *addition)
 
void add_fix_it_hint_replace (physical_location loc, const char *replacement)
 
void add_fix_it_hint_delete (physical_location loc)
 
void take_execution_path (execution_path path)
 
void finish (const char *fmt,...) LIBGDIAGNOSTICS_PARAM_GCC_FORMAT_STRING(2
 
void void finish_va (const char *fmt, va_list *args) LIBGDIAGNOSTICS_PARAM_GCC_FORMAT_STRING(2
 

Data Fields

void void ::diagnostic *const m_inner
 

Detailed Description

Wrapper around a diagnostic *.

Constructor & Destructor Documentation

◆ diagnostic()

libgdiagnostics::diagnostic::diagnostic ( ::diagnostic * d)
inline

Member Function Documentation

◆ add_fix_it_hint_delete()

void diagnostic::add_fix_it_hint_delete ( physical_location loc)
inline

◆ add_fix_it_hint_insert_after()

void diagnostic::add_fix_it_hint_insert_after ( physical_location loc,
const char * addition )
inline

◆ add_fix_it_hint_insert_before()

void diagnostic::add_fix_it_hint_insert_before ( physical_location loc,
const char * addition )
inline

◆ add_fix_it_hint_replace()

void diagnostic::add_fix_it_hint_replace ( physical_location loc,
const char * replacement )
inline

◆ add_location_with_label()

void diagnostic::add_location_with_label ( physical_location loc,
const char * text )
inline

◆ add_rule()

void diagnostic::add_rule ( const char * title,
const char * url )
inline

References diagnostic_add_rule(), and m_inner.

◆ finish()

void diagnostic::finish ( const char * fmt,
... )
inline

References ap, diagnostic_finish_va(), and m_inner.

Referenced by main(), and parse_options().

◆ finish_va()

void diagnostic::finish_va ( const char * fmt,
va_list * args )
inline

References diagnostic_finish_va(), and m_inner.

◆ set_cwe()

void diagnostic::set_cwe ( unsigned cwe_id)
inline

References diagnostic_set_cwe(), and m_inner.

◆ set_location()

void diagnostic::set_location ( physical_location loc)
inline

◆ set_logical_location()

void diagnostic::set_logical_location ( logical_location loc)
inline

◆ take_execution_path()

void diagnostic::take_execution_path ( execution_path path)
inline

Field Documentation

◆ m_inner


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