]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: 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>
Thu, 6 Apr 2023 08:47:18 +0000 (10:47 +0200)
commit51b607c22278fd9c17fc174accd89a22c41fcf2e
treede795012f154458776324a1596cc23529c3bb388
parent8e7e682a9f86ab7c9906f2dc287da8486e22db10
gccrs: 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