]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: move diagnostics_output_spec to diagnostics::output_spec
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:36 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:36 +0000 (15:13 -0400)
commitc9c996d3f0373e912b43da5a601c9677a2d9b3b4
treee425940555f5f586117b161106aa74210c39e874
parentaccd28c1aa02439901c05a9a41d9a3611978d809
diagnostics: move diagnostics_output_spec to diagnostics::output_spec

No functional change intended.

gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Replace diagnostic-output-spec.o
with diagnostics/output-spec.o.
* diagnostic-output-spec.cc: Move to...
* diagnostics/output-spec.cc: ...here.  Update #include for
move of diagnostic-output-spec.h to diagnostics/output-spec.h.
(namespace::diagnostics_output_spec): Replace with...
(namespace diagnostics::output_spec): ...this, removing redundant
prefixes.
(diagnostics_output_spec::gcc_spec_context): Replace with...
(diagnostics::output_spec::dc_spec_context): ...this.
(diagnostic_output_spec_cc_tests): Rename to...
(diagnostics_output_spec_cc_tests): ...this.
* diagnostic-output-spec.h: Move to...
* diagnostics/output-spec.h: ...here and update inclusion guard.
(namespace::diagnostics_output_spec): Replace with...
(namespace diagnostics::output_spec): ...this, removing redundant
prefixes.
(diagnostics_output_spec::gcc_spec_context): Replace with...
(diagnostics::output_spec::dc_spec_context): ...this.
* libgdiagnostics.cc: Update #include for move of
diagnostic-output-spec.h to diagnostics/output-spec.h.
* opts-diagnostic.cc: Likewise.  Update for namespace and name
changes.
* selftest-run-tests.cc (selftest::run_tests): Update for renaming
of diagnostic_output_spec_cc_tests to
diagnostics_output_spec_cc_tests.
* selftest.h (diagnostic_output_spec_cc_tests): Rename decl to...
(diagnostics_output_spec_cc_tests): ...this.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/Makefile.in
gcc/diagnostics/output-spec.cc [moved from gcc/diagnostic-output-spec.cc with 95% similarity]
gcc/diagnostics/output-spec.h [moved from gcc/diagnostic-output-spec.h with 85% similarity]
gcc/libgdiagnostics.cc
gcc/opts-diagnostic.cc
gcc/selftest-run-tests.cc
gcc/selftest.h