Skip to content

Commit b4d4e22

Browse files
committed
testsuite: rename plugins from .c to .cc
In r12-6650-g5c69acb32329d4 we updated our sources from .c to .cc since for some time GCC has been implemented in C++, not C. GCC plugins are also implemented in C++, not C, but the plugins in our testsuite still have .c extensions. Rename the plugin implementation files in the testsuite from .c to .cc, for consistency with GCC's implementation files (as opposed to .C, which is used in C++ parts of the testsuite). Don't rename the files that the plugins are tested *on*. gcc/testsuite/ChangeLog: * g++.dg/plugin/plugin.exp (plugin_test_list): Update for renaming of all plugin implementation files from .c to .cc. * g++.dg/plugin/attribute_plugin.c: Rename to... * g++.dg/plugin/attribute_plugin.cc: ...this. * g++.dg/plugin/comment_plugin.c: Rename to... * g++.dg/plugin/comment_plugin.cc: ...this. * g++.dg/plugin/decl_plugin.c: Rename to... * g++.dg/plugin/decl_plugin.cc: ...this. * g++.dg/plugin/def_plugin.c: Rename to... * g++.dg/plugin/def_plugin.cc: ...this. * g++.dg/plugin/dumb_plugin.c: Rename to... * g++.dg/plugin/dumb_plugin.cc: ...this. * g++.dg/plugin/header_plugin.c: Rename to... * g++.dg/plugin/header_plugin.cc: ...this. * g++.dg/plugin/pragma_plugin.c: Rename to... * g++.dg/plugin/pragma_plugin.cc: ...this. * g++.dg/plugin/selfassign.c: Rename to... * g++.dg/plugin/selfassign.cc: ...this. * g++.dg/plugin/show_template_tree_color_plugin.c: Rename to... * g++.dg/plugin/show_template_tree_color_plugin.cc: ...this. * gcc.dg/plugin/plugin.exp (plugin_test_list): Update for renaming of all plugin implementation files from .c to .cc. * gcc.dg/plugin/analyzer_cpython_plugin.c: Rename to... * gcc.dg/plugin/analyzer_cpython_plugin.cc: ...this. * gcc.dg/plugin/analyzer_gil_plugin.c: Rename to... * gcc.dg/plugin/analyzer_gil_plugin.cc: ...this. * gcc.dg/plugin/analyzer_kernel_plugin.c: Rename to... * gcc.dg/plugin/analyzer_kernel_plugin.cc: ...this. * gcc.dg/plugin/analyzer_known_fns_plugin.c: Rename to... * gcc.dg/plugin/analyzer_known_fns_plugin.cc: ...this. * gcc.dg/plugin/crash_test_plugin.c: Rename to... * gcc.dg/plugin/crash_test_plugin.cc: ...this. * gcc.dg/plugin/diagnostic_group_plugin.c: Rename to... * gcc.dg/plugin/diagnostic_group_plugin.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_show_trees.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_show_trees.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_inlining.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_inlining.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_metadata.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_metadata.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_nesting.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_nesting.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_paths.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_paths.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_show_locus.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_string_literals.c: Rename * gcc.dg/plugin/diagnostic_plugin_test_string_literals.cc: ..to this. * gcc.dg/plugin/diagnostic_plugin_test_text_art.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_text_art.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_test_tree_expression_range.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_test_tree_expression_range.cc: ...this. * gcc.dg/plugin/diagnostic_plugin_xhtml_format.c: Rename to... * gcc.dg/plugin/diagnostic_plugin_xhtml_format.cc: ...this. * gcc.dg/plugin/dump_plugin.c: Rename to... * gcc.dg/plugin/dump_plugin.cc: ...this. * gcc.dg/plugin/expensive_selftests_plugin.c: Rename to... * gcc.dg/plugin/expensive_selftests_plugin.cc: ...this. * gcc.dg/plugin/finish_unit_plugin.c: Rename to... * gcc.dg/plugin/finish_unit_plugin.cc: ...this. * gcc.dg/plugin/ggcplug.c: Rename to... * gcc.dg/plugin/ggcplug.cc: ...this. * gcc.dg/plugin/location_overflow_plugin.c: Rename to... * gcc.dg/plugin/location_overflow_plugin.cc: ...this. * gcc.dg/plugin/must_tail_call_plugin.c: Rename to... * gcc.dg/plugin/must_tail_call_plugin.cc: ...this. * gcc.dg/plugin/one_time_plugin.c: Rename to... * gcc.dg/plugin/one_time_plugin.cc: ...this. * gcc.dg/plugin/poly-int-01_plugin.c: Rename to... * gcc.dg/plugin/poly-int-01_plugin.cc: ...this. * gcc.dg/plugin/poly-int-02_plugin.c: Rename to... * gcc.dg/plugin/poly-int-02_plugin.cc: ...this. * gcc.dg/plugin/poly-int-03_plugin.c: Rename to... * gcc.dg/plugin/poly-int-03_plugin.cc: ...this. * gcc.dg/plugin/poly-int-04_plugin.c: Rename to... * gcc.dg/plugin/poly-int-04_plugin.cc: ...this. * gcc.dg/plugin/poly-int-05_plugin.c: Rename to... * gcc.dg/plugin/poly-int-05_plugin.cc: ...this. * gcc.dg/plugin/poly-int-06_plugin.c: Rename to... * gcc.dg/plugin/poly-int-06_plugin.cc: ...this. * gcc.dg/plugin/poly-int-07_plugin.c: Rename to... * gcc.dg/plugin/poly-int-07_plugin.cc: ...this. * gcc.dg/plugin/selfassign.c: Rename to... * gcc.dg/plugin/selfassign.cc: ...this. * gcc.dg/plugin/start_unit_plugin.c: Rename to... * gcc.dg/plugin/start_unit_plugin.cc: ...this. * gcc.dg/plugin/wide-int_plugin.c: Rename to... * gcc.dg/plugin/wide-int_plugin.cc: ...this. * obj-c++.dg/plugin/plugin.exp: Update for renaming of plugin implementation file from .c to .cc. * objc.dg/plugin/plugin.exp: Likewise. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
1 parent e2db825 commit b4d4e22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+48
-48
lines changed

gcc/testsuite/g++.dg/plugin/plugin.exp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ gcc_parallel_test_enable 0
5656
# Specify the plugin source file and the associated test files in a list.
5757
# plugin_test_list={ {plugin1 test1 test2 ...} {plugin2 test1 ...} ... }
5858
set plugin_test_list [list \
59-
{ attribute_plugin.c attribute_plugin-test-1.C } \
60-
{ pragma_plugin.c pragma_plugin-test-1.C } \
61-
{ selfassign.c self-assign-test-1.C self-assign-test-2.C self-assign-test-3.C } \
62-
{ dumb_plugin.c dumb-plugin-test-1.C } \
63-
{ header_plugin.c header-plugin-test.C } \
64-
{ decl_plugin.c decl-plugin-test.C } \
65-
{ def_plugin.c def-plugin-test.C } \
66-
{ ../../gcc.dg/plugin/diagnostic_plugin_test_tree_expression_range.c \
59+
{ attribute_plugin.cc attribute_plugin-test-1.C } \
60+
{ pragma_plugin.cc pragma_plugin-test-1.C } \
61+
{ selfassign.cc self-assign-test-1.C self-assign-test-2.C self-assign-test-3.C } \
62+
{ dumb_plugin.cc dumb-plugin-test-1.C } \
63+
{ header_plugin.cc header-plugin-test.C } \
64+
{ decl_plugin.cc decl-plugin-test.C } \
65+
{ def_plugin.cc def-plugin-test.C } \
66+
{ ../../gcc.dg/plugin/diagnostic_plugin_test_tree_expression_range.cc \
6767
diagnostic-test-expressions-1.C } \
68-
{ ../../gcc.dg/plugin/diagnostic_plugin_test_inlining.c \
68+
{ ../../gcc.dg/plugin/diagnostic_plugin_test_inlining.cc \
6969
diagnostic-test-inlining-1.C } \
70-
{ ../../gcc.dg/plugin/diagnostic_plugin_test_string_literals.c \
70+
{ ../../gcc.dg/plugin/diagnostic_plugin_test_string_literals.cc \
7171
../../gcc.dg/plugin/diagnostic-test-string-literals-1.c \
7272
../../gcc.dg/plugin/diagnostic-test-string-literals-2.c \
7373
../../gcc.dg/plugin/diagnostic-test-string-literals-3.c \
7474
../../gcc.dg/plugin/diagnostic-test-string-literals-4.c } \
75-
{ ../../gcc.dg/plugin/location_overflow_plugin.c \
75+
{ ../../gcc.dg/plugin/location_overflow_plugin.cc \
7676
location-overflow-test-pr96391.c \
7777
location-overflow-test-pr100796.c } \
78-
{ show_template_tree_color_plugin.c \
78+
{ show_template_tree_color_plugin.cc \
7979
show-template-tree-color.C \
8080
show-template-tree-color-no-highlight-colors.C \
8181
show-template-tree-color-labels.C \
8282
show-template-tree-color-no-elide-type.C } \
83-
{ comment_plugin.c comments-1.C } \
83+
{ comment_plugin.cc comments-1.C } \
8484
]
8585

8686
foreach plugin_test $plugin_test_list {

0 commit comments

Comments
 (0)