GCC Middle and Back End API Reference
diagnostic_file Struct Reference
Collaboration diagram for diagnostic_file:

Public Member Functions

 diagnostic_file (diagnostic_manager &mgr, const char *name, const char *sarif_source_language)
 
const char * get_name () const
 
const char * get_sarif_source_language () const
 
const content_bufferget_content () const
 
void set_buffered_content (const char *buf, size_t sz)
 

Private Attributes

diagnostic_managerm_mgr
 
owned_nullable_string m_name
 
owned_nullable_string m_sarif_source_language
 
std::unique_ptr< content_bufferm_content
 

Detailed Description

This has to be a "struct" as it is exposed in the C API.   

Constructor & Destructor Documentation

◆ diagnostic_file()

diagnostic_file::diagnostic_file ( diagnostic_manager & mgr,
const char * name,
const char * sarif_source_language )
inline

Member Function Documentation

◆ get_content()

const content_buffer * diagnostic_file::get_content ( ) const
inline

References m_content.

Referenced by diagnostic_manager_debug_dump_file().

◆ get_name()

◆ get_sarif_source_language()

const char * diagnostic_file::get_sarif_source_language ( ) const
inline

◆ set_buffered_content()

Field Documentation

◆ m_content

std::unique_ptr<content_buffer> diagnostic_file::m_content
private

Referenced by get_content().

◆ m_mgr

diagnostic_manager& diagnostic_file::m_mgr
private

◆ m_name

owned_nullable_string diagnostic_file::m_name
private

Referenced by get_name().

◆ m_sarif_source_language

owned_nullable_string diagnostic_file::m_sarif_source_language
private

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