[gcc r16-6200] gccrs: Change parser template implementation file ext
Arthur Cohen
cohenarthur@gcc.gnu.org
Wed Dec 17 06:35:24 GMT 2025
https://gcc.gnu.org/g:019c75fc44aff052f17433564448a0ae1a793187
commit r16-6200-g019c75fc44aff052f17433564448a0ae1a793187
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Thu Dec 4 13:22:04 2025 +0100
gccrs: Change parser template implementation file ext
We have a few more template implementation files within the rust frontend
that use the hxx extension to make their content clear and highlight the
missing header guards.
gcc/rust/ChangeLog:
* parse/rust-parse-impl-lexer.cc: Fix included file name.
* parse/rust-parse-impl-macro.cc: Likewise.
* parse/rust-parse-impl-proc-macro.cc: Likewise.
* parse/rust-parse-impl.h: Move to...
* parse/rust-parse-impl.hxx: ...here.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diff:
---
gcc/rust/parse/rust-parse-impl-lexer.cc | 2 +-
gcc/rust/parse/rust-parse-impl-macro.cc | 2 +-
gcc/rust/parse/rust-parse-impl-proc-macro.cc | 2 +-
gcc/rust/parse/{rust-parse-impl.h => rust-parse-impl.hxx} | 0
4 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/rust/parse/rust-parse-impl-lexer.cc b/gcc/rust/parse/rust-parse-impl-lexer.cc
index fec91e8b19d2..9943a606d719 100644
--- a/gcc/rust/parse/rust-parse-impl-lexer.cc
+++ b/gcc/rust/parse/rust-parse-impl-lexer.cc
@@ -16,7 +16,7 @@
// along with GCC; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-#include "rust-parse-impl.h"
+#include "rust-parse-impl.hxx"
namespace Rust {
diff --git a/gcc/rust/parse/rust-parse-impl-macro.cc b/gcc/rust/parse/rust-parse-impl-macro.cc
index e632887fa729..7ac2d31102cb 100644
--- a/gcc/rust/parse/rust-parse-impl-macro.cc
+++ b/gcc/rust/parse/rust-parse-impl-macro.cc
@@ -16,7 +16,7 @@
// along with GCC; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-#include "rust-parse-impl.h"
+#include "rust-parse-impl.hxx"
#include "rust-macro-invoc-lexer.h"
namespace Rust {
diff --git a/gcc/rust/parse/rust-parse-impl-proc-macro.cc b/gcc/rust/parse/rust-parse-impl-proc-macro.cc
index 965c9146d1d8..4960e06a3c65 100644
--- a/gcc/rust/parse/rust-parse-impl-proc-macro.cc
+++ b/gcc/rust/parse/rust-parse-impl-proc-macro.cc
@@ -16,7 +16,7 @@
// along with GCC; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-#include "rust-parse-impl.h"
+#include "rust-parse-impl.hxx"
#include "rust-proc-macro-invoc-lexer.h"
namespace Rust {
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.hxx
similarity index 100%
rename from gcc/rust/parse/rust-parse-impl.h
rename to gcc/rust/parse/rust-parse-impl.hxx
More information about the Gcc-cvs
mailing list