GCC Middle and Back End API Reference
json_client_data_hooks Class Reference
Inheritance diagram for json_client_data_hooks:
Collaboration diagram for json_client_data_hooks:

Public Member Functions

 json_client_data_hooks (const json::value &js_val, const client_data_hooks *inner)
const diagnostics::logical_locations::managerget_logical_location_manager () const override
diagnostics::logical_locations::key get_current_logical_location () const override
const char * maybe_get_sarif_source_language (const char *) const override
const client_version_info * get_any_version_info () const override
void add_sarif_invocation_properties (sarif_object &invocation_obj) const override
void dump (FILE *out, int indent) const
void DEBUG_FUNCTION dump () const

Private Attributes

json_logical_location_manager m_logical_loc_mgr
const json::valuem_js_val
const client_data_hooks * m_inner

Detailed Description

Implementation of diagnostics::client_data_hooks
for reporting a diagnostic at a particular json::value
in a JSON input file.

It wraps another hooks instance, but uses a
json_logical_location_manager, has a specific
json::value for the current logical location,
and treats the SARIF source lang as "json".   

Constructor & Destructor Documentation

◆ json_client_data_hooks()

json_client_data_hooks::json_client_data_hooks ( const json::value & js_val,
const client_data_hooks * inner )
inline

Member Function Documentation

◆ add_sarif_invocation_properties()

void diagnostics::client_data_hooks_decorator::add_sarif_invocation_properties ( sarif_object & invocation_obj) const
inlineoverridevirtualinherited

Implements diagnostics::client_data_hooks.

References m_inner.

◆ dump() [1/2]

void DEBUG_FUNCTION diagnostics::client_data_hooks::dump ( ) const
inlineinherited

References DEBUG_FUNCTION, and dump().

Referenced by dump().

◆ dump() [2/2]

void diagnostics::client_data_hooks::dump ( FILE * out,
int indent ) const
inherited

◆ get_any_version_info()

const client_version_info * diagnostics::client_data_hooks_decorator::get_any_version_info ( ) const
inlineoverridevirtualinherited

Implements diagnostics::client_data_hooks.

References m_inner.

◆ get_current_logical_location()

diagnostics::logical_locations::key json_client_data_hooks::get_current_logical_location ( ) const
inlineoverridevirtual

◆ get_logical_location_manager()

const diagnostics::logical_locations::manager * json_client_data_hooks::get_logical_location_manager ( ) const
inlineoverridevirtual

◆ maybe_get_sarif_source_language()

const char * json_client_data_hooks::maybe_get_sarif_source_language ( const char * ) const
inlineoverridevirtual

Field Documentation

◆ m_inner

const client_data_hooks* diagnostics::client_data_hooks_decorator::m_inner
privateinherited

◆ m_js_val

const json::value& json_client_data_hooks::m_js_val
private

◆ m_logical_loc_mgr

json_logical_location_manager json_client_data_hooks::m_logical_loc_mgr
private

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