GCC Middle and Back End API Reference
|
#include <pending-diagnostic.h>
Public Member Functions | |
diagnostic_emission_context (const saved_diagnostic &sd, rich_location &rich_loc, diagnostic_metadata &metadata, logger *logger) | |
const pending_diagnostic & | get_pending_diagnostic () const |
bool | warn (const char *,...) ATTRIBUTE_GCC_DIAG(2 |
bool void | inform (const char *,...) ATTRIBUTE_GCC_DIAG(2 |
bool void location_t | get_location () const |
logger * | get_logger () const |
void | add_cwe (int cwe) |
void | add_rule (const diagnostic_metadata::rule &r) |
Private Attributes | |
const saved_diagnostic & | m_sd |
rich_location & | m_rich_loc |
diagnostic_metadata & | m_metadata |
logger * | m_logger |
A bundle of information for use by implementations of the pending_diagnostic::emit vfunc. The rich_location will have already been populated with a diagnostic_path.
|
inline |
|
inline |
References diagnostic_metadata::add_cwe(), and m_metadata.
|
inline |
References diagnostic_metadata::add_rule(), m_metadata, and r.
|
inline |
References m_rich_loc.
const pending_diagnostic & ana::diagnostic_emission_context::get_pending_diagnostic | ( | ) | const |
bool void ana::diagnostic_emission_context::inform | ( | const char * | , |
... ) |
bool ana::diagnostic_emission_context::warn | ( | const char * | , |
... ) |
|
private |
Referenced by get_logger().
|
private |
Referenced by add_cwe(), and add_rule().
|
private |
Referenced by get_location().
|
private |