GCC Middle and Back End API Reference
|
#include <output-file.h>
Public Member Functions | |
output_file () | |
output_file (FILE *outf, bool owned, label_text filename) | |
~output_file () | |
output_file (const output_file &other)=delete | |
output_file (output_file &&other) | |
output_file & | operator= (const output_file &other)=delete |
output_file & | operator= (output_file &&other) |
operator bool () const | |
FILE * | get_open_file () const |
const char * | get_filename () const |
Static Public Member Functions | |
static output_file | try_to_open (context &dc, line_maps *line_maps, const char *base_file_name, const char *extension, bool binary) |
Private Attributes | |
FILE * | m_outf |
bool | m_owned |
label_text | m_filename |
RAII class for wrapping a FILE * that could be borrowed or owned, along with the underlying filename.
|
inline |
References false, m_filename, m_outf, and m_owned.
Referenced by operator=(), operator=(), output_file(), and output_file().
|
inline |
References gcc_assert, m_filename, m_outf, and m_owned.
|
inline |
References gcc_assert, m_outf, and m_owned.
|
delete |
References output_file().
|
inline |
References gcc_assert, m_filename, m_outf, m_owned, and output_file().
|
inline |
References m_filename.
|
inline |
References m_outf.
|
delete |
References output_file().
|
inline |
References gcc_assert, m_filename, m_outf, m_owned, and output_file().
|
static |
Attempt to open "BASE_FILE_NAME""EXTENSION" for writing. Return a non-null output_file, or return a null output_file and complain to DC using LINE_MAPS.
References base_file_name(), diagnostics::context::emit_diagnostic_with_group(), fopen, gcc_assert, output_file, and UNKNOWN_LOCATION.
Referenced by diagnostics::open_sarif_output_file().
|
private |
Referenced by get_filename(), operator=(), output_file(), output_file(), and output_file().
|
private |
Referenced by get_open_file(), operator bool(), operator=(), output_file(), output_file(), output_file(), and ~output_file().
|
private |
Referenced by operator=(), output_file(), output_file(), output_file(), and ~output_file().