diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-18 12:23:03 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-08 12:02:41 +0100 |
commit | b9501cbe2624a80365e33550fc92035620a64e7b (patch) | |
tree | 2c614cb8667353d323ad6c5c04305d20e5af08bb /gcc/rust/ast/rust-ast.h | |
parent | b1de4bb869845c6c7dadbc1cf84626e922e80ab9 (diff) | |
download | gcc-b9501cbe2624a80365e33550fc92035620a64e7b.zip gcc-b9501cbe2624a80365e33550fc92035620a64e7b.tar.gz gcc-b9501cbe2624a80365e33550fc92035620a64e7b.tar.bz2 |
macro: Allow builtin `MacroInvocation`s within the AST
This commit turns AST::MacroInvocation into a sum type.
The class can now represent a regular macro invocation (lazily expanded)
or a builtin one (eagerly expanded)
gcc/rust/ChangeLog:
* expand/rust-macro-builtins.cc (make_macro_invocation): Add short hand
function for returning fragments containing macro invocations.
(MacroBuiltin::compile_error_handler): Add explanation for eager
invocation
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
0 files changed, 0 insertions, 0 deletions