diff options
author | Matthew Jasper <mjjasper1@gmail.com> | 2023-06-03 13:37:51 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-06-20 08:10:23 +0000 |
commit | 3a0f10e7984f8b2457201cfd8676e1351ac3b7a0 (patch) | |
tree | 87b727dac7b89de8bf88987a3481e24d8ad8fc1a | |
parent | 1931d49c42ad0dfcfbd30845dc0dcc89a805643b (diff) | |
download | gcc-3a0f10e7984f8b2457201cfd8676e1351ac3b7a0.zip gcc-3a0f10e7984f8b2457201cfd8676e1351ac3b7a0.tar.gz gcc-3a0f10e7984f8b2457201cfd8676e1351ac3b7a0.tar.bz2 |
gccrs: Print macro invocations in AST dump
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc (Dump::visit): Print macro invocations.
Signed-off-by: Matthew Jasper <mjjasper1@gmail.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-dump.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index 5d59611..c08631b 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -1570,8 +1570,11 @@ Dump::visit (MacroRulesDefinition &rules_def) } void -Dump::visit (MacroInvocation &) -{} +Dump::visit (MacroInvocation &invocation) +{ + // FIXME: make this accurately reflect the original macro syntax. + stream << invocation.get_invoc_data ().as_string (); +} void Dump::visit (MetaItemPath &) |