GCC Middle and Back End API Reference
|
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_buffer * | get_content () const |
void | set_buffered_content (const char *buf, size_t sz) |
Private Attributes | |
diagnostic_manager & | m_mgr |
owned_nullable_string | m_name |
owned_nullable_string | m_sarif_source_language |
std::unique_ptr< content_buffer > | m_content |
This has to be a "struct" as it is exposed in the C API.
|
inline |
References m_mgr, m_name, and m_sarif_source_language.
|
inline |
References m_content.
Referenced by diagnostic_manager_debug_dump_file().
|
inline |
References m_name.
Referenced by diagnostic_manager_debug_dump_file(), diagnostic_manager::ensure_linemap_for_file_and_line(), diagnostic_manager::new_file(), and sarif_sink::sarif_sink().
|
inline |
References m_sarif_source_language.
Referenced by diagnostic_manager_debug_dump_file().
void diagnostic_file::set_buffered_content | ( | const char * | buf, |
size_t | sz ) |
References file_cache::add_buffered_content(), m_content, m_mgr, m_name, and make_unique().
Referenced by diagnostic_file_set_buffered_content().
|
private |
Referenced by get_content(), and set_buffered_content().
|
private |
Referenced by diagnostic_file(), and set_buffered_content().
|
private |
Referenced by diagnostic_file(), get_name(), and set_buffered_content().
|
private |
Referenced by diagnostic_file(), and get_sarif_source_language().