GCC Middle and Back End API Reference
|
#include <input.h>
Public Member Functions | |
char_span (const char *ptr, size_t n_elts) | |
operator bool () const | |
size_t | length () const |
const char * | get_buffer () const |
char | operator[] (int idx) const |
char_span | subspan (int offset, int n_elts) const |
char * | xstrdup () const |
Private Attributes | |
const char * | m_ptr |
size_t | m_n_elts |
A class capturing the bounds of a buffer, to allow for run-time bounds-checking in a checked build.
References m_ptr.
Referenced by asm_show_source(), edited_line::edited_line(), get_source_text_between(), and location_compute_display_column().
|
inline |
|
inline |
References gcc_assert, m_n_elts, and m_ptr.
|
inline |
References char_span(), gcc_assert, ggc_alloc(), m_n_elts, m_ptr, and offset.
Referenced by get_source_text_between(), and get_substring_ranges_for_loc().
|
inline |
References m_n_elts, and m_ptr.
Referenced by get_source_text_between(), and get_substring_ranges_for_loc().
|
private |
Referenced by length(), operator[](), subspan(), and xstrdup().
Referenced by get_buffer(), operator bool(), operator[](), subspan(), and xstrdup().