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.
|
inline |
Referenced by subspan().
|
inline |
References m_ptr.
Referenced by asm_show_source(), dump_location_info(), edited_line::edited_line(), sarif_builder::get_source_lines(), get_source_text_between(), location_compute_display_column(), sarif_builder::maybe_make_artifact_content_object(), edited_file::print_diff_hunk(), and edited_file::print_run_of_changed_lines().
|
inline |
References m_n_elts.
Referenced by asm_show_source(), blank_line_before_p(), dump_location_info(), edited_line::edited_line(), sarif_builder::get_source_lines(), get_source_text_between(), get_substring_ranges_for_loc(), location_compute_display_column(), sarif_builder::maybe_make_artifact_content_object(), edited_file::print_content(), edited_file::print_diff_hunk(), and edited_file::print_run_of_changed_lines().
|
inline |
References gcc_assert, m_n_elts, and m_ptr.
|
inline |
References char_span(), gcc_assert, 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().
|
private |
Referenced by get_buffer(), operator bool(), operator[](), subspan(), and xstrdup().