GCC Middle and Back End API Reference
text_info Struct 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
 

Detailed Description

The type of a text to be formatted according a format specification
along with a list of things.   

Constructor & Destructor Documentation

◆ text_info() [1/2]

text_info::text_info ( )
default

◆ text_info() [2/2]

text_info::text_info ( const char * format_spec,
va_list * args_ptr,
int err_no,
void ** data = nullptr,
rich_location * rich_loc = nullptr )
inline

Member Function Documentation

◆ get_location()

location_t text_info::get_location ( unsigned int index_of_location) const

◆ set_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().

Field Documentation

◆ m_args_ptr

◆ m_data

void** text_info::m_data

◆ m_err_no

int text_info::m_err_no

Referenced by format_phase_1().

◆ m_format_spec

const char* text_info::m_format_spec

Referenced by format_phase_1().

◆ m_richloc

rich_location* text_info::m_richloc

Referenced by get_location(), and set_location().


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