diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-12-06 11:29:54 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-12-06 11:29:54 -0500 |
commit | 4f5b7f1b738f7206402d008e52718abfd78e2a07 (patch) | |
tree | d5dcd7520031ad82b22517e3680ba3c8af790584 /gcc/c | |
parent | a1fa104f2dde3ab185397f41a300f7a0ee04d5f2 (diff) | |
download | gcc-4f5b7f1b738f7206402d008e52718abfd78e2a07.zip gcc-4f5b7f1b738f7206402d008e52718abfd78e2a07.tar.gz gcc-4f5b7f1b738f7206402d008e52718abfd78e2a07.tar.bz2 |
c++: consolidate location printing in error.cc [PR116253]
Consolidate the location-printing logic in cp/error.cc, as preliminary
work towards supporting nested diagnostics (PR other/116253).
gcc/cp/ChangeLog:
PR other/116253
* error.cc (print_location): Move to earlier in the file.
(print_instantiation_partial_context_line): Replace
location-printing logic with a call to print_location.
(print_instantiation_partial_context): Likewise, splitting up
pp_verbatim calls.
(maybe_print_constexpr_context): Likewise.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions