]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: move diagnostic_metadata to diagnostics::metadata
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:35 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:35 +0000 (15:13 -0400)
commitcf7b34b7f3083689dbcdd87991b0d5fc20cccfbf
tree56fdc108a1de98b756bfc8c174eeb7096bc505ab
parent1743dd35a7705ebf76ee505796f71c3ec0d9a39c
diagnostics: move diagnostic_metadata to diagnostics::metadata

renamed: gcc/diagnostic-metadata.h -> gcc/diagnostics/metadata.h

No functional change intended.

gcc/analyzer/ChangeLog:
* diagnostic-manager.cc: Update for move of diagnostic_metadata to
diagnostics::metadata.
* kf.cc: Likewise.
* pending-diagnostic.h: Likewise; also, update #include for move
of "diagnostic-metadata.h" to "diagnostics/metadata.h".

gcc/cobol/ChangeLog:
* util.cc: Remove redundant #includes

gcc/ChangeLog:
* diagnostic-core.h: Update for move of diagnostic_metadata to
diagnostics::metadata.
* diagnostic-format-html.cc: Likewise; also, update #include for
move of "diagnostic-metadata.h" to "diagnostics/metadata.h".
* diagnostic-format-sarif.cc: Likewise.
* diagnostic-format-text.cc: Likewise.
* diagnostic-global-context.cc: Likewise.
* diagnostic.cc: Likewise.
* diagnostic.h: Likewise.
* diagnostic-metadata.h: Move to...
* diagnostics/metadata.h: ...here, updating header guard.
(class diagnostic_metadata): Move to...
(class diagnostics::metadata): ...here.  Drop redundant
"diagnostics::" qualifiers.
* libgdiagnostics.cc: : Update #include for move of
"diagnostic-metadata.h" to "diagnostics/metadata.h", and update
for move of diagnostic_metadata to diagnostics::metadata.
* selftest-diagnostic.cc: Update for move of diagnostic_metadata
to diagnostics::metadata.
* selftest-diagnostic.h: Likewise.

gcc/rust/ChangeLog:
* rust-diagnostics.cc: Update #include for move of
"diagnostic-metadata.h" to "diagnostics/metadata.h", and update
for move of diagnostic_metadata to diagnostics::metadata.

gcc/testsuite/ChangeLog:
* gcc.dg/plugin/analyzer_cpython_plugin.cc: : Update #include for
move of "diagnostic-metadata.h" to "diagnostics/metadata.h"
* gcc.dg/plugin/analyzer_kernel_plugin.cc: Likewise.
* gcc.dg/plugin/analyzer_known_fns_plugin.cc: Likewise.
* gcc.dg/plugin/diagnostic_plugin_test_graphs.cc: Likewise.  Also
update for move of diagnostic_metadata to diagnostics::metadata.
* gcc.dg/plugin/diagnostic_plugin_test_metadata.cc: Likewise.
* gcc.dg/plugin/diagnostic_plugin_test_paths.cc: Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
22 files changed:
gcc/analyzer/diagnostic-manager.cc
gcc/analyzer/kf.cc
gcc/analyzer/pending-diagnostic.h
gcc/cobol/util.cc
gcc/diagnostic-core.h
gcc/diagnostic-format-html.cc
gcc/diagnostic-format-sarif.cc
gcc/diagnostic-format-text.cc
gcc/diagnostic-global-context.cc
gcc/diagnostic.cc
gcc/diagnostic.h
gcc/diagnostics/metadata.h [moved from gcc/diagnostic-metadata.h with 86% similarity]
gcc/libgdiagnostics.cc
gcc/rust/rust-diagnostics.cc
gcc/selftest-diagnostic.cc
gcc/selftest-diagnostic.h
gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.cc
gcc/testsuite/gcc.dg/plugin/analyzer_kernel_plugin.cc
gcc/testsuite/gcc.dg/plugin/analyzer_known_fns_plugin.cc
gcc/testsuite/gcc.dg/plugin/diagnostic_plugin_test_graphs.cc
gcc/testsuite/gcc.dg/plugin/diagnostic_plugin_test_metadata.cc
gcc/testsuite/gcc.dg/plugin/diagnostic_plugin_test_paths.cc