]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: expand: Expand item level attribute proc macros
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 5 Jun 2023 09:24:35 +0000 (11:24 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:46:26 +0000 (18:46 +0100)
commit6925358a440bd9dfb33dc79d8f345530b4cb94cc
tree05ddfd5634483caa3b98f40c7a540df1b2a42507
parent7d59ce850c10c2162e54b4f115ec0cb34536d8e7
gccrs: expand: Expand item level attribute proc macros

Expand custom attributes from procedural macros at item level.

gcc/rust/ChangeLog:

* expand/rust-expand-visitor.cc (expand_attribute): Add function
to expand a given attribute on a given item.
* expand/rust-macro-expand.h (struct MacroExpander): Change
return type to ast fragment.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-expand-visitor.cc
gcc/rust/expand/rust-macro-expand.h