From: Pierre-Emmanuel Patry <[email protected]>
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 <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/e830d3c065ec95481ee30a2ac2e149827952437f
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4322
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(-)
rename gcc/rust/parse/{rust-parse-impl.h => rust-parse-impl.hxx} (100%)
diff --git a/gcc/rust/parse/rust-parse-impl-lexer.cc
b/gcc/rust/parse/rust-parse-impl-lexer.cc
index fec91e8b1..9943a606d 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 e632887fa..7ac2d3110 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 965c9146d..4960e06a3 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
--
2.52.0