From: Pierre-Emmanuel Patry Date: Tue, 1 Aug 2023 09:20:00 +0000 (+0200) Subject: gccrs: Add getters for different types of proc macros X-Git-Tag: basepoints/gcc-15~2156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f5bedeb6c6c540d6995f37e28b2a17484f0ad87;p=thirdparty%2Fgcc.git gccrs: Add getters for different types of proc macros Add some getters on the ast crate in order to be able to retrieve a reference to a crate's proc macros. gcc/rust/ChangeLog: * ast/rust-ast.h: Add getters. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index ca117842a24b..7b2561ee31c0 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -2083,6 +2083,21 @@ public: NodeId get_node_id () const { return node_id; } const std::vector &get_inner_attrs () const { return inner_attrs; } + const std::vector &get_attribute_macros () const + { + return attribute_macros; + } + + const std::vector &get_derive_macros () const + { + return derive_macros; + } + + const std::vector &get_bang_macros () const + { + return bang_macros; + } + std::vector> take_items () { return std::move (items);