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 |
void | set_lazy_digraphs (const diagnostics::digraphs::lazy_digraphs *lazy_digraphs) |
const diagnostics::digraphs::lazy_digraphs * | get_lazy_digraphs () const |
Private Attributes | |
int | m_cwe |
auto_vec< const rule * > | m_rules |
const diagnostics::digraphs::lazy_digraphs * | m_lazy_digraphs |
A bundle of additional metadata that can be associated with a diagnostic. This supports an optional CWE identifier, and zero or more "rules". Additionally, this provides a place to associate a diagnostic with zero or more directed graphs.
|
inline |
References m_cwe, and m_lazy_digraphs.
|
inlinevirtual |
|
inline |
References m_cwe.
|
inline |
References m_cwe.
Referenced by html_builder::make_element_for_metadata().
|
inline |
References m_lazy_digraphs.
|
inline |
References m_rules.
Referenced by html_builder::make_element_for_metadata().
|
inline |
References m_rules.
Referenced by html_builder::make_element_for_metadata().
|
inlinevirtual |
|
inline |
References m_lazy_digraphs.
|
private |
Referenced by add_cwe(), diagnostic_metadata(), and get_cwe().
|
private |
Referenced by diagnostic_metadata(), get_lazy_digraphs(), and set_lazy_digraphs().
Referenced by add_rule(), get_num_rules(), and get_rule().