void gcc_rich_location::add_fixit_misspelled_id (location_t misspelled_token_loc, tree hint_id) { gcc_assert (TREE_CODE (hint_id) == IDENTIFIER_NODE); source_range misspelled_token_range = get_range_from_loc (line_table, misspelled_token_loc); add_fixit_replace (misspelled_token_range, IDENTIFIER_POINTER (hint_id)); }
void gcc_rich_location::add_fixit_misspelled_id (location_t misspelled_token_loc, const char *hint) { gcc_assert (hint); source_range misspelled_token_range = get_range_from_loc (line_table, misspelled_token_loc); add_fixit_replace (misspelled_token_range, hint); }
static void emit_warning (location_t loc) { source_range src_range = get_range_from_loc (line_table, loc); warning_at (loc, 0, "range %i:%i-%i:%i", LOCATION_LINE (src_range.m_start), LOCATION_COLUMN (src_range.m_start), LOCATION_LINE (src_range.m_finish), LOCATION_COLUMN (src_range.m_finish)); }