GCC Middle and Back End API Reference
diagnostics::physical_location_maker Class Reference

#include <physical-location-maker.h>

Public Member Functions

 physical_location_maker (line_maps *line_table_)
location_t new_location_from_file_and_line (const char *filename, int line_num)
location_t new_location_from_file_line_column (const char *filename, int line_num, int column_num)

Private Member Functions

void ensure_linemap_for_file_and_line (const char *filename, int linenum)

Private Attributes

line_maps * m_line_table

Detailed Description

A class for generating location_t values for arbitrary
filename/line/column values.
This is less efficient than working with the line_maps
directly, but is more convenient and flexible for occasional
on-demand location_t values.   

Constructor & Destructor Documentation

◆ physical_location_maker()

diagnostics::physical_location_maker::physical_location_maker ( line_maps * line_table_)
inline

References m_line_table.

Member Function Documentation

◆ ensure_linemap_for_file_and_line()

void diagnostics::physical_location_maker::ensure_linemap_for_file_and_line ( const char * filename,
int linenum )
private

◆ new_location_from_file_and_line()

location_t diagnostics::physical_location_maker::new_location_from_file_and_line ( const char * filename,
int line_num )

◆ new_location_from_file_line_column()

location_t diagnostics::physical_location_maker::new_location_from_file_line_column ( const char * filename,
int line_num,
int column_num )

Field Documentation

◆ m_line_table

line_maps* diagnostics::physical_location_maker::m_line_table
private

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