]> git.ipfire.org Git - thirdparty/gcc.git/commit
macro: Allow builtin `MacroInvocation`s within the AST
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 11 Jan 2023 14:29:22 +0000 (15:29 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 30 Jan 2023 12:47:35 +0000 (13:47 +0100)
commit3630e0e2bf0fced043efb23f077adfe9b576dcad
tree5a00a51378b46a951775a4b1f9aaed22c95e3582
parentd12a38da686e39952e083821f1d77116f3ed91af
macro: Allow builtin `MacroInvocation`s within the AST

gcc/rust/ChangeLog:

* ast/rust-macro.h (enum class): Add `BuiltinMacro` enum class.
* expand/rust-attribute-visitor.cc (AttrVisitor::visit): Mention
switching on `macro.kind` once builtin macro invocations are properly
handled.
* parse/rust-parse-impl.h (Parser::parse_macro_invocation): Switch to new MacroInvocation
API.
(Parser::parse_type): Likewise.
(Parser::parse_type_no_bounds): Likewise.
gcc/rust/ast/rust-macro.h
gcc/rust/expand/rust-attribute-visitor.cc
gcc/rust/parse/rust-parse-impl.h