aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-path.cc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-06-18 10:59:56 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-06-18 10:59:56 -0400
commitc371d7bdbe69201b4c91179ff6f3e2237e0e7fbe (patch)
tree42ace3bbf32dcdd7edc252758b060a83f42517db /gcc/diagnostic-path.cc
parentbdcfe7f7f50ec64b45581a175d1eca41c74a3dfe (diff)
downloadgcc-c371d7bdbe69201b4c91179ff6f3e2237e0e7fbe.zip
gcc-c371d7bdbe69201b4c91179ff6f3e2237e0e7fbe.tar.gz
gcc-c371d7bdbe69201b4c91179ff6f3e2237e0e7fbe.tar.bz2
diagnostics: eliminate diagnostic_context::m_print_path callback
No functional change intended. gcc/ChangeLog: * diagnostic-format-json.cc (diagnostic_output_format_init_json): Replace clearing of diagnostic_context::m_print_path callback with setting the path format to DPF_NONE. * diagnostic-format-sarif.cc (diagnostic_output_format_init_sarif): Likewise. * diagnostic.cc (diagnostic_context::show_any_path): Replace call to diagnostic_context::m_print_path callback with a direct call to diagnostic_context::print_path. * diagnostic.h (diagnostic_context::print_path): New decl. (diagnostic_context::m_print_path): Delete callback. * tree-diagnostic-path.cc (default_tree_diagnostic_path_printer): Convert to... (diagnostic_context::print_path): ...this. * tree-diagnostic.cc (tree_diagnostics_defaults): Delete initialization of m_print_path. * tree-diagnostic.h (default_tree_diagnostic_path_printer): Delete decl. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/diagnostic-path.cc')
0 files changed, 0 insertions, 0 deletions