From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 693C038936D8; Wed, 8 Jun 2022 12:43:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 693C038936D8 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] util: Add copyright header on make-unique.h X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 285aabdd3b2d8ee7c158eee34241ba52a31b19d3 X-Git-Newrev: a6f5bc6054520f0dc8479215dc1204196ae7767f Message-Id: <20220608124343.693C038936D8@sourceware.org> Date: Wed, 8 Jun 2022 12:43:43 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 12:43:43 -0000 https://gcc.gnu.org/g:a6f5bc6054520f0dc8479215dc1204196ae7767f commit a6f5bc6054520f0dc8479215dc1204196ae7767f Author: Arthur Cohen Date: Thu May 5 14:19:59 2022 +0200 util: Add copyright header on make-unique.h Diff: --- gcc/rust/util/rust-make-unique.h | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gcc/rust/util/rust-make-unique.h b/gcc/rust/util/rust-make-unique.h index 5f098d20307..77b203ee1c9 100644 --- a/gcc/rust/util/rust-make-unique.h +++ b/gcc/rust/util/rust-make-unique.h @@ -1,13 +1,31 @@ +// Copyright (C) 2020-2022 Free Software Foundation, Inc. + +// This file is part of GCC. + +// GCC 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. + +// GCC 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. + +// You should have received a copy of the GNU General Public License +// along with GCC; see the file COPYING3. If not see +// . + #ifndef RUST_MAKE_UNIQUE_H #define RUST_MAKE_UNIQUE_H +#include + namespace Rust { template -std::unique_ptr -make_unique (Ts &&... params) -{ - return std::unique_ptr (new T (std::forward (params)...)); +std::unique_ptr make_unique(Ts &&...params) { + return std::unique_ptr(new T(std::forward(params)...)); } } // namespace Rust