GCC Middle and Back End API Reference
|
#include <pretty-print.h>
Public Member Functions | |
text_info ()=default | |
text_info (const char *format_spec, va_list *args_ptr, int err_no, void **data=nullptr, rich_location *rich_loc=nullptr) | |
void | set_location (unsigned int idx, location_t loc, enum range_display_kind range_display_kind) |
location_t | get_location (unsigned int index_of_location) const |
Data Fields | |
const char * | m_format_spec |
va_list * | m_args_ptr |
int | m_err_no |
void ** | m_data |
rich_location * | m_richloc |
The type of a text to be formatted according a format specification along with a list of things.
|
default |
|
inline |
location_t text_info::get_location | ( | unsigned int | index_of_location | ) | const |
References gcc_checking_assert, m_richloc, and UNKNOWN_LOCATION.
void text_info::set_location | ( | unsigned int | idx, |
location_t | loc, | ||
enum range_display_kind range_display_kind | ) |
Overwrite the given location/range within this text_info's rich_location. For use e.g. when implementing "+" in client format decoders.
References gcc_checking_assert, and m_richloc.
Referenced by default_tree_printer().
va_list* text_info::m_args_ptr |
void** text_info::m_data |
int text_info::m_err_no |
Referenced by format_phase_1().
const char* text_info::m_format_spec |
Referenced by format_phase_1().
rich_location* text_info::m_richloc |
Referenced by get_location(), and set_location().