GCC Middle and Back End API Reference
|
#include <diagnostic-metadata.h>
Data Structures | |
class | precanned_rule |
class | rule |
Public Member Functions | |
diagnostic_metadata () | |
virtual | ~diagnostic_metadata () |
virtual void | maybe_add_sarif_properties (sarif_object &) const |
void | add_cwe (int cwe) |
int | get_cwe () const |
void | add_rule (const rule &r) |
unsigned | get_num_rules () const |
const rule & | get_rule (unsigned idx) const |
Private Attributes | |
int | m_cwe |
auto_vec< const rule * > | m_rules |
A bundle of additional metadata that can be associated with a diagnostic. This supports an optional CWE identifier, and zero or more "rules".
|
inline |
|
inlinevirtual |
|
inline |
References m_cwe.
Referenced by ana::diagnostic_emission_context::add_cwe().
|
inline |
Referenced by ana::diagnostic_emission_context::add_rule().
|
inline |
References m_cwe.
Referenced by json_from_metadata().
|
inline |
References m_rules.
|
inlinevirtual |
Referenced by add_rule(), get_num_rules(), and get_rule().