]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: ast: Rename rust-ast-tokenstream file
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 2 May 2023 14:02:55 +0000 (16:02 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:37:17 +0000 (18:37 +0100)
The file does not contain any TokenStream declaration anymore and thus
should be named more appropriately.

gcc/rust/ChangeLog:

* Make-lang.in: Change file name.
* ast/rust-ast-tokenstream.cc: Moved to...
* ast/rust-ast-collector.cc: ...here.
* ast/rust-ast-tokenstream.h: Moved to...
* ast/rust-ast-collector.h: ...here.
* rust-session-manager.cc: Change header name.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/Make-lang.in
gcc/rust/ast/rust-ast-collector.cc [moved from gcc/rust/ast/rust-ast-tokenstream.cc with 99% similarity]
gcc/rust/ast/rust-ast-collector.h [moved from gcc/rust/ast/rust-ast-tokenstream.h with 100% similarity]
gcc/rust/rust-session-manager.cc

index 8ef50b24594a4ab2a46b8a2726cb6470c85c840d..fdfc48413956f9abd0ffe94104e4a45ae78a81f2 100644 (file)
@@ -78,7 +78,7 @@ GRS_OBJS = \
     rust/rust-pattern.o \
     rust/rust-ast-fragment.o \
     rust/rust-ast-dump.o \
-    rust/rust-ast-tokenstream.o \
+    rust/rust-ast-collector.o \
     rust/rust-hir-dump.o \
     rust/rust-session-manager.o \
     rust/rust-compile.o \
similarity index 99%
rename from gcc/rust/ast/rust-ast-tokenstream.cc
rename to gcc/rust/ast/rust-ast-collector.cc
index 41db77b788ba6869ba1db49d07c4869e86012a87..908d1517449dfd471a5ae59c504f82f7b52a7319 100644 (file)
@@ -15,7 +15,7 @@
 // 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/>.
-#include "rust-ast-tokenstream.h"
+#include "rust-ast-collector.h"
 #include "libproc_macro/proc_macro.h"
 
 namespace Rust {
index e85527ee4ba9958a2f9b41cf9e945061583f8c72..860abab2932a84aa68e67b7f557a8737370c5977 100644 (file)
@@ -35,7 +35,7 @@
 #include "rust-lint-unused-var.h"
 #include "rust-hir-dump.h"
 #include "rust-ast-dump.h"
-#include "rust-ast-tokenstream.h"
+#include "rust-ast-collector.h"
 #include "rust-export-metadata.h"
 #include "rust-imports.h"
 #include "rust-extern-crate.h"