[gcc r14-7598] gccrs: Make MacroInvocation cloning public

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 17:43:56 GMT 2024


https://gcc.gnu.org/g:215925bccc70eb5f9f9b5ac925115498c3e7990c

commit r14-7598-g215925bccc70eb5f9f9b5ac925115498c3e7990c
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date:   Thu May 11 00:29:04 2023 -0400

    gccrs: Make MacroInvocation cloning public
    
    gcc/rust/ChangeLog:
    
            * ast/rust-macro.h
            (MacroInvocation::clone_macro_invocation_impl): Make public.
    
    Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

Diff:
---
 gcc/rust/ast/rust-macro.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h
index c7472decc27..bdf3eff3dc6 100644
--- a/gcc/rust/ast/rust-macro.h
+++ b/gcc/rust/ast/rust-macro.h
@@ -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 ();


More information about the Gcc-cvs mailing list