]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Make MacroInvocation cloning public
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 11 May 2023 04:29:04 +0000 (00:29 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:37:19 +0000 (18:37 +0100)
gcc/rust/ChangeLog:

* ast/rust-macro.h
(MacroInvocation::clone_macro_invocation_impl): Make public.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-macro.h

index c7472decc27733f8387e9374d0c121c9590155b1..bdf3eff3dc665e7116b7b8ca21751f1155fa5e6b 100644 (file)
@@ -775,11 +775,13 @@ protected:
     return clone_macro_invocation_impl ();
   }
 
+public:
   /*virtual*/ MacroInvocation *clone_macro_invocation_impl () const
   {
     return new MacroInvocation (*this);
   }
 
+protected:
   Item *clone_item_impl () const override
   {
     return clone_macro_invocation_impl ();