]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
diagnostics: move gcc/selftest-diagnostic.{h,cc} -> gcc/diagnostics/selftest-context...
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:40 +0000 (15:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 25 Jul 2025 19:13:40 +0000 (15:13 -0400)
No functional change intended.

gcc/ChangeLog:
* Makefile.in (OBJS-libcommon): Replace selftest-diagnostic.o with
diagnostics/selftest-context.o.
* diagnostic.cc: Update for move of selftest-diagnostic.h to
diagnostics/selftest-context.h.
* diagnostics/html-sink.cc: Likewise.
* diagnostics/lazy-paths.cc: Likewise.
* diagnostics/output-spec.cc: Likewise.
* diagnostics/paths-output.cc: Likewise.
* diagnostics/sarif-sink.cc: Likewise.
* selftest-diagnostic.cc: Move to...
* diagnostics/selftest-context.cc: ...here and update for move of
header file.
* selftest-diagnostic.h: Move to...
* diagnostics/selftest-context.h: ...here.
* diagnostics/source-printing.cc: Update for move of
selftest-diagnostic.h to diagnostics/selftest-context.h.

gcc/c-family/ChangeLog:
* c-format.cc: Update for move of selftest-diagnostic.h to
diagnostics/selftest-context.h.

gcc/testsuite/ChangeLog:
* gcc.dg/plugin/expensive_selftests_plugin.cc: Update for move of
selftest-diagnostic.h to diagnostics/selftest-context.h.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
12 files changed:
gcc/Makefile.in
gcc/c-family/c-format.cc
gcc/diagnostic.cc
gcc/diagnostics/html-sink.cc
gcc/diagnostics/lazy-paths.cc
gcc/diagnostics/output-spec.cc
gcc/diagnostics/paths-output.cc
gcc/diagnostics/sarif-sink.cc
gcc/diagnostics/selftest-context.cc [moved from gcc/selftest-diagnostic.cc with 98% similarity]
gcc/diagnostics/selftest-context.h [moved from gcc/selftest-diagnostic.h with 93% similarity]
gcc/diagnostics/source-printing.cc
gcc/testsuite/gcc.dg/plugin/expensive_selftests_plugin.cc

index a140d166b597d7c63a65daf390b740f9d3a98b0b..820cef5f4e489435ae54cb1fa2b52fec0a328a65 100644 (file)
@@ -1868,6 +1868,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \
        diagnostics/source-printing.o \
        diagnostics/state-graphs.o \
        diagnostics/state-graphs-to-dot.o \
+       diagnostics/selftest-context.o \
        diagnostics/selftest-logical-locations.o \
        diagnostics/selftest-paths.o \
        graphviz.o pex.o \
@@ -1876,7 +1877,7 @@ OBJS-libcommon = diagnostic-spec.o diagnostic.o diagnostic-color.o \
        xml.o \
        sbitmap.o \
        vec.o input.o hash-table.o ggc-none.o memory-block.o \
-       selftest.o selftest-diagnostic.o sort.o \
+       selftest.o sort.o \
        selftest-json.o \
        text-art/box-drawing.o \
        text-art/canvas.o \
index 80430e9a8f7caa041521c920049aa05340a0a3f2..d75b05df3a5894e95b2a715df2092774e89f53b1 100644 (file)
@@ -32,7 +32,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostic.h"
 #include "substring-locations.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "builtins.h"
 #include "attribs.h"
 #include "c-family/c-type-mismatch.h"
index ea606e34d2daa9f1207e9b2a785fb42e17dc9dd1..4d1b253bbe931745d10f53d3f4798ebb6a24ecf3 100644 (file)
@@ -42,7 +42,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostics/text-sink.h"
 #include "diagnostics/edit-context.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "opts.h"
 #include "cpplib.h"
 #include "text-art/theme.h"
index 0785046b5ae5abb602ec099d0f65fb15d8acab0b..260f756edfa8be2e726d36c3983cab22cf5f2971 100644 (file)
@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostics/paths.h"
 #include "diagnostics/client-data-hooks.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "pretty-print-format-impl.h"
 #include "pretty-print-urlifier.h"
 #include "diagnostics/edit-context.h"
index c30386f0b174168e7dd682d95e8ef97cbfc9a428..322ad786d114f39b01071873885e784f362b0c5e 100644 (file)
@@ -29,7 +29,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostic.h"
 #include "diagnostics/lazy-paths.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "simple-diagnostic-path.h"
 #include "gcc-rich-location.h"
 #include "diagnostics/text-sink.h"
index ecfa8e7ca610fc3cf150413eb09f34ac1e9d661d..699b5ac3bae732c7589ffdbc0229b7f53cf1dc91 100644 (file)
@@ -38,7 +38,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostics/text-sink.h"
 #include "diagnostics/sarif-sink.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "pretty-print-markup.h"
 #include "diagnostics/output-spec.h"
 
index c409cce14cc8f0cbc1ca072e6b2df77302c72387..1815223ee02051709c0718029d332c20b5c9b890 100644 (file)
@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostics/source-printing-effects.h"
 #include "pretty-print-markup.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "diagnostics/selftest-paths.h"
 #include "text-art/theme.h"
 #include "diagnostics/text-sink.h"
index 228917286bec82e7eb70277ecb38d3106351e576..2fafb4127cf2576bfe8527810b3b288aeb5b83bf 100644 (file)
@@ -44,7 +44,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "ordered-hash-map.h"
 #include "sbitmap.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "diagnostics/selftest-source-printing.h"
 #include "selftest-json.h"
 #include "text-range-label.h"
similarity index 98%
rename from gcc/selftest-diagnostic.cc
rename to gcc/diagnostics/selftest-context.cc
index 321949852384fa006296f8c7858d9fbbdb18b54b..918bd5e430b16708f18618b0addc1fb617ab0412 100644 (file)
@@ -23,7 +23,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "diagnostic.h"
 #include "diagnostics/sink.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 
 /* The selftest code should entirely disappear in a production
    configuration, hence we guard all of it with #if CHECKING_P.  */
similarity index 93%
rename from gcc/selftest-diagnostic.h
rename to gcc/diagnostics/selftest-context.h
index 6a5216650f92314403d7eb1efe13e89ec4969fcb..afbc6611ed77ef12b49ca19e476ae06372609881 100644 (file)
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
-#ifndef GCC_SELFTEST_DIAGNOSTIC_H
-#define GCC_SELFTEST_DIAGNOSTIC_H
+#ifndef GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H
+#define GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H
 
 /* The selftest code should entirely disappear in a production
    configuration, hence we guard all of it with #if CHECKING_P.  */
@@ -60,4 +60,4 @@ class test_diagnostic_context : public diagnostics::context
 
 #endif /* #if CHECKING_P */
 
-#endif /* GCC_SELFTEST_DIAGNOSTIC_H */
+#endif /* GCC_DIAGNOSTICS_SELFTEST_CONTEXT_H */
index 7794dc2c6715c1a0cc4f31777b6d4e5fd130728b..abb6bb7115b8b468d2b3dc2b25a8d4114e1905c2 100644 (file)
@@ -33,7 +33,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gcc-rich-location.h"
 #include "text-range-label.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 #include "diagnostics/selftest-source-printing.h"
 #include "cpplib.h"
 #include "text-art/types.h"
index 8abed140ac9c4bf5680fb676d670aaafde94a76c..c6fe3016f896593a83dcf12fa4f13ec207c95198 100644 (file)
@@ -8,7 +8,7 @@
 #include "diagnostic.h"
 #include "diagnostics/edit-context.h"
 #include "selftest.h"
-#include "selftest-diagnostic.h"
+#include "diagnostics/selftest-context.h"
 
 int plugin_is_GPL_compatible;