aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-11 12:13:01 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-09-15 09:26:39 +0000
commit2322c30f8c53b0571e33ef95598f53ec2534d3b2 (patch)
treeb160f87dc8793028b63d0bb51f69102bc0afc639
parent70ef83265950d1f11f59c90321c77e235aff4b4b (diff)
downloadgcc-2322c30f8c53b0571e33ef95598f53ec2534d3b2.zip
gcc-2322c30f8c53b0571e33ef95598f53ec2534d3b2.tar.gz
gcc-2322c30f8c53b0571e33ef95598f53ec2534d3b2.tar.bz2
Add license text to libproc_macro rust interface
The license text was missing in rust files producing the libproc_macro interface to the libproc_macro_internal library. ChangeLog: * libgrust/libproc_macro/bridge.rs: Add license text. * libgrust/libproc_macro/bridge/ffistring.rs: Likewise. * libgrust/libproc_macro/bridge/group.rs: Likewise. * libgrust/libproc_macro/bridge/ident.rs: Likewise. * libgrust/libproc_macro/bridge/literal.rs: Likewise. * libgrust/libproc_macro/bridge/punct.rs: Likewise. * libgrust/libproc_macro/bridge/span.rs: Likewise. * libgrust/libproc_macro/bridge/token_stream.rs: Likewise. * libgrust/libproc_macro/group.rs: Likewise. * libgrust/libproc_macro/ident.rs: Likewise. * libgrust/libproc_macro/lib.rs: Likewise. * libgrust/libproc_macro/literal.rs: Likewise. * libgrust/libproc_macro/punct.rs: Likewise. * libgrust/libproc_macro/span.rs: Likewise. * libgrust/libproc_macro/token_stream.rs: Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--libgrust/libproc_macro/bridge.rs22
-rw-r--r--libgrust/libproc_macro/bridge/ffistring.rs22
-rw-r--r--libgrust/libproc_macro/bridge/group.rs22
-rw-r--r--libgrust/libproc_macro/bridge/ident.rs22
-rw-r--r--libgrust/libproc_macro/bridge/literal.rs22
-rw-r--r--libgrust/libproc_macro/bridge/punct.rs22
-rw-r--r--libgrust/libproc_macro/bridge/span.rs22
-rw-r--r--libgrust/libproc_macro/bridge/token_stream.rs22
-rw-r--r--libgrust/libproc_macro/group.rs22
-rw-r--r--libgrust/libproc_macro/ident.rs22
-rw-r--r--libgrust/libproc_macro/lib.rs22
-rw-r--r--libgrust/libproc_macro/literal.rs22
-rw-r--r--libgrust/libproc_macro/punct.rs22
-rw-r--r--libgrust/libproc_macro/span.rs22
-rw-r--r--libgrust/libproc_macro/token_stream.rs22
15 files changed, 330 insertions, 0 deletions
diff --git a/libgrust/libproc_macro/bridge.rs b/libgrust/libproc_macro/bridge.rs
index 3900ae1..4f33af1 100644
--- a/libgrust/libproc_macro/bridge.rs
+++ b/libgrust/libproc_macro/bridge.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
pub mod ffistring;
pub mod group;
pub mod ident;
diff --git a/libgrust/libproc_macro/bridge/ffistring.rs b/libgrust/libproc_macro/bridge/ffistring.rs
index 73162e9..09de02a 100644
--- a/libgrust/libproc_macro/bridge/ffistring.rs
+++ b/libgrust/libproc_macro/bridge/ffistring.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use std::convert::TryInto;
use std::ffi::c_uchar;
use std::fmt;
diff --git a/libgrust/libproc_macro/bridge/group.rs b/libgrust/libproc_macro/bridge/group.rs
index 254a3db..007c3c6 100644
--- a/libgrust/libproc_macro/bridge/group.rs
+++ b/libgrust/libproc_macro/bridge/group.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge::span::Span;
use bridge::token_stream::TokenStream;
use std::fmt;
diff --git a/libgrust/libproc_macro/bridge/ident.rs b/libgrust/libproc_macro/bridge/ident.rs
index d58896d..465fe3b 100644
--- a/libgrust/libproc_macro/bridge/ident.rs
+++ b/libgrust/libproc_macro/bridge/ident.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge::ffistring::FFIString;
use bridge::span::Span;
use std::fmt;
diff --git a/libgrust/libproc_macro/bridge/literal.rs b/libgrust/libproc_macro/bridge/literal.rs
index 5982504..4a108cc 100644
--- a/libgrust/libproc_macro/bridge/literal.rs
+++ b/libgrust/libproc_macro/bridge/literal.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge::{ffistring::FFIString, span::Span};
use std::fmt;
use std::str::FromStr;
diff --git a/libgrust/libproc_macro/bridge/punct.rs b/libgrust/libproc_macro/bridge/punct.rs
index e835472..ebe5ed4 100644
--- a/libgrust/libproc_macro/bridge/punct.rs
+++ b/libgrust/libproc_macro/bridge/punct.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge::span::Span;
use std::convert::TryFrom;
use std::fmt;
diff --git a/libgrust/libproc_macro/bridge/span.rs b/libgrust/libproc_macro/bridge/span.rs
index 06537c9..f22b4e7 100644
--- a/libgrust/libproc_macro/bridge/span.rs
+++ b/libgrust/libproc_macro/bridge/span.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
//! Bridge internal span representation and functions
//!
//! # Note
diff --git a/libgrust/libproc_macro/bridge/token_stream.rs b/libgrust/libproc_macro/bridge/token_stream.rs
index 094f91f..42cba62 100644
--- a/libgrust/libproc_macro/bridge/token_stream.rs
+++ b/libgrust/libproc_macro/bridge/token_stream.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge::{ffistring::FFIString, group::Group, ident::Ident, literal::Literal, punct::Punct};
use std::convert::TryInto;
use std::fmt;
diff --git a/libgrust/libproc_macro/group.rs b/libgrust/libproc_macro/group.rs
index 29bfb9d..46286d5 100644
--- a/libgrust/libproc_macro/group.rs
+++ b/libgrust/libproc_macro/group.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge;
use std::fmt;
use Span;
diff --git a/libgrust/libproc_macro/ident.rs b/libgrust/libproc_macro/ident.rs
index 809c993..21a3a99 100644
--- a/libgrust/libproc_macro/ident.rs
+++ b/libgrust/libproc_macro/ident.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge;
use std::fmt;
use Span;
diff --git a/libgrust/libproc_macro/lib.rs b/libgrust/libproc_macro/lib.rs
index a1be0ac..8b7662a 100644
--- a/libgrust/libproc_macro/lib.rs
+++ b/libgrust/libproc_macro/lib.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
pub use group::{Delimiter, Group};
pub use ident::Ident;
pub use literal::Literal;
diff --git a/libgrust/libproc_macro/literal.rs b/libgrust/libproc_macro/literal.rs
index 171ca56..05cc28b 100644
--- a/libgrust/libproc_macro/literal.rs
+++ b/libgrust/libproc_macro/literal.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge;
use std::fmt;
use std::str::FromStr;
diff --git a/libgrust/libproc_macro/punct.rs b/libgrust/libproc_macro/punct.rs
index 0f7830e..40c378e 100644
--- a/libgrust/libproc_macro/punct.rs
+++ b/libgrust/libproc_macro/punct.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge;
use std::convert::TryInto;
use std::fmt;
diff --git a/libgrust/libproc_macro/span.rs b/libgrust/libproc_macro/span.rs
index b5d573c..5ea2db8 100644
--- a/libgrust/libproc_macro/span.rs
+++ b/libgrust/libproc_macro/span.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
use bridge;
use std::fmt;
diff --git a/libgrust/libproc_macro/token_stream.rs b/libgrust/libproc_macro/token_stream.rs
index 9333e3e..4981dde 100644
--- a/libgrust/libproc_macro/token_stream.rs
+++ b/libgrust/libproc_macro/token_stream.rs
@@ -1,3 +1,25 @@
+// Copyright (C) 2023 Free Software Foundation, Inc.
+//
+// This file is part of the GNU Proc Macro Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
+
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+// <http://www.gnu.org/licenses/>.
+
//! Public implementation details for the `TokenStream` type, such as iterators.
use bridge;
use std::convert::TryInto;