GCC Middle and Back End API Reference
diagnostic_event::meaning Struct Reference

#include <diagnostic-path.h>

Public Member Functions

 meaning ()
 meaning (enum verb verb, enum noun noun)
 meaning (enum verb verb, enum property property)
void dump_to_pp (pretty_printer *pp) const

Static Public Member Functions

static const char * maybe_get_verb_str (enum verb)
static const char * maybe_get_noun_str (enum noun)
static const char * maybe_get_property_str (enum property)

Data Fields

enum verb m_verb
enum noun m_noun
enum property m_property

Constructor & Destructor Documentation

◆ meaning() [1/3]

diagnostic_event::meaning::meaning ( )
inline

◆ meaning() [2/3]

diagnostic_event::meaning::meaning ( enum verb verb,
enum noun noun )
inline

◆ meaning() [3/3]

diagnostic_event::meaning::meaning ( enum verb verb,
enum property property )
inline

Member Function Documentation

◆ dump_to_pp()

void diagnostic_event::meaning::dump_to_pp ( pretty_printer * pp) const
Disable warnings about missing quoting in GCC diagnostics for the print calls below.
class diagnostic_event.
struct diagnostic_event::meaning.

References m_noun, m_property, m_verb, maybe_get_noun_str(), maybe_get_property_str(), maybe_get_verb_str(), pp_character(), pp_printf(), and pp_string().

◆ maybe_get_noun_str()

const char * diagnostic_event::meaning::maybe_get_noun_str ( enum noun n)
static
Get a string (or nullptr) for N suitable for use within a SARIF threadFlowLocation "kinds" property (SARIF v2.1.0 section 3.38.8).

References diagnostic_event::function, gcc_unreachable, diagnostic_event::lock, diagnostic_event::memory, diagnostic_event::resource, diagnostic_event::sensitive, diagnostic_event::taint, and diagnostic_event::unknown.

Referenced by dump_to_pp(), and sarif_builder::maybe_make_kinds_array().

◆ maybe_get_property_str()

const char * diagnostic_event::meaning::maybe_get_property_str ( enum property p)
static
Get a string (or nullptr) for P suitable for use within a SARIF threadFlowLocation "kinds" property (SARIF v2.1.0 section 3.38.8).

References diagnostic_event::false_, gcc_unreachable, diagnostic_event::true_, and diagnostic_event::unknown.

Referenced by dump_to_pp(), and sarif_builder::maybe_make_kinds_array().

◆ maybe_get_verb_str()

const char * diagnostic_event::meaning::maybe_get_verb_str ( enum verb v)
static
Get a string (or nullptr) for V suitable for use within a SARIF threadFlowLocation "kinds" property (SARIF v2.1.0 section 3.38.8).

References diagnostic_event::acquire, diagnostic_event::branch, diagnostic_event::call, diagnostic_event::danger, diagnostic_event::enter, diagnostic_event::exit, gcc_unreachable, diagnostic_event::release, diagnostic_event::return_, and diagnostic_event::unknown.

Referenced by dump_to_pp(), and sarif_builder::maybe_make_kinds_array().

Field Documentation

◆ m_noun

enum noun diagnostic_event::meaning::m_noun

◆ m_property

enum property diagnostic_event::meaning::m_property

◆ m_verb

enum verb diagnostic_event::meaning::m_verb

The documentation for this struct was generated from the following files: