GCC Middle and Back End API Reference
|
#include <diagnostic-output-file.h>
Public Member Functions | |
diagnostic_output_file () | |
diagnostic_output_file (FILE *outf, bool owned, label_text filename) | |
~diagnostic_output_file () | |
diagnostic_output_file (const diagnostic_output_file &other)=delete | |
diagnostic_output_file (diagnostic_output_file &&other) | |
diagnostic_output_file & | operator= (const diagnostic_output_file &other)=delete |
diagnostic_output_file & | operator= (diagnostic_output_file &&other) |
operator bool () const | |
FILE * | get_open_file () const |
const char * | get_filename () const |
Private Attributes | |
FILE * | m_outf |
bool | m_owned |
label_text | m_filename |
RAII class for managing FILE * for diagnostic formats. Copyright (C) 2024 Free Software Foundation, Inc. Contributed by David Malcolm <dmalcolm@redhat.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
RAII class for wrapping a FILE * that could be borrowed or owned, along with the underlying filename.
|
inline |
|
inline |
References gcc_assert, m_filename, m_outf, and m_owned.
|
inline |
References gcc_assert, m_outf, and m_owned.
|
delete |
|
inline |
References gcc_assert, m_filename, m_outf, and m_owned.
|
inline |
References m_filename.
Referenced by sarif_file_output_format::dump(), and sarif_file_output_format::sarif_file_output_format().
|
inline |
References m_outf.
Referenced by sarif_file_output_format::sarif_file_output_format(), and sarif_file_output_format::~sarif_file_output_format().
|
delete |
|
inline |
References gcc_assert, m_filename, m_outf, and m_owned.
|
private |
Referenced by diagnostic_output_file(), diagnostic_output_file(), get_filename(), and operator=().
|
private |
Referenced by diagnostic_output_file(), diagnostic_output_file(), get_open_file(), operator bool(), operator=(), and ~diagnostic_output_file().
|
private |
Referenced by diagnostic_output_file(), diagnostic_output_file(), operator=(), and ~diagnostic_output_file().