gcc/ChangeLog: PR c++/79300 * diagnostic-show-locus.c (layout::layout): Use start and finish spelling location for the start and finish of each range. * genmatch.c (linemap_client_expand_location_to_spelling_point): Add unused aspect param. * input.c (expand_location_1): Add "aspect" param, and use it to access the correct part of the location. (expand_location): Pass LOCATION_ASPECT_CARET to new param of expand_location_1. (expand_location_to_spelling_point): Likewise. (linemap_client_expand_location_to_spelling_point): Add "aspect" param, and pass it to expand_location_1. gcc/testsuite/ChangeLog: PR c++/79300 * c-c++-common/Wmisleading-indentation-3.c (fn_14): Update expected underlining within macro expansion. * c-c++-common/pr70264.c: Likewise. * g++.dg/plugin/diagnostic-test-expressions-1.C (test_within_macro_1): New test. (test_within_macro_2): Likewise. (test_within_macro_3): Likewise. (test_within_macro_4): Likewise. * gcc.dg/format/diagnostic-ranges.c (test_macro_3): Update expected underlining within macro expansion. (test_macro_4): Likewise. * gcc.dg/plugin/diagnostic-test-expressions-1.c (test_within_macro_1): New test. (test_within_macro_2): Likewise. (test_within_macro_3): Likewise. (test_within_macro_4): Likewise. * gcc.dg/spellcheck-fields-2.c (test_macro): Update expected underlining within macro expansion. libcpp/ChangeLog: PR c++/79300 * include/line-map.h (enum location_aspect): New enum. (linemap_client_expand_location_to_spelling_point): Add enum location_aspect param. * line-map.c (rich_location::get_expanded_location): Update for new param of linemap_client_expand_location_to_spelling_point. (rich_location::maybe_add_fixit): Likewise. (fixit_hint::affects_line_p): Likewise. From-SVN: r250022
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| diagnostic-test-expressions-1.c | Loading commit data... | |
| diagnostic-test-show-locus-bw.c | Loading commit data... | |
| diagnostic-test-show-locus-color.c | Loading commit data... | |
| diagnostic-test-show-locus-generate-patch.c | Loading commit data... | |
| diagnostic-test-show-locus-parseable-fixits.c | Loading commit data... | |
| diagnostic-test-show-trees-1.c | Loading commit data... | |
| diagnostic-test-string-literals-1.c | Loading commit data... | |
| diagnostic-test-string-literals-2.c | Loading commit data... | |
| diagnostic-test-string-literals-3.c | Loading commit data... | |
| diagnostic-test-string-literals-4.c | Loading commit data... | |
| diagnostic_plugin_show_trees.c | Loading commit data... | |
| diagnostic_plugin_test_show_locus.c | Loading commit data... | |
| diagnostic_plugin_test_string_literals.c | Loading commit data... | |
| diagnostic_plugin_test_tree_expression_range.c | Loading commit data... | |
| finish_unit-test-1.c | Loading commit data... | |
| finish_unit_plugin.c | Loading commit data... | |
| ggcplug-test-1.c | Loading commit data... | |
| ggcplug.c | Loading commit data... | |
| location-overflow-test-1.c | Loading commit data... | |
| location-overflow-test-2.c | Loading commit data... | |
| location_overflow_plugin.c | Loading commit data... | |
| must-tail-call-1.c | Loading commit data... | |
| must-tail-call-2.c | Loading commit data... | |
| must_tail_call_plugin.c | Loading commit data... | |
| one_time-test-1.c | Loading commit data... | |
| one_time_plugin.c | Loading commit data... | |
| plugin.exp | Loading commit data... | |
| plugindir1.c | Loading commit data... | |
| plugindir2.c | Loading commit data... | |
| plugindir3.c | Loading commit data... | |
| plugindir4.c | Loading commit data... | |
| self-assign-test-1.c | Loading commit data... | |
| self-assign-test-2.c | Loading commit data... | |
| selfassign.c | Loading commit data... | |
| start_unit-test-1.c | Loading commit data... | |
| start_unit_plugin.c | Loading commit data... | |
| wide-int-test-1.c | Loading commit data... | |
| wide-int_plugin.c | Loading commit data... |