diff options
author | Jiakun Fan <120090316@link.cuhk.edu.cn> | 2023-03-11 17:47:32 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:21:12 +0100 |
commit | ebdc961f811262a5002760a0af6d15a2a0357fc8 (patch) | |
tree | e01692535dc05425e60d6db8cf761cd8dbce3fc3 /gcc/rust/hir/rust-hir-dump.h | |
parent | 3b61fe1d507bc8a2197b2ea0e87ccda943ed4aa2 (diff) | |
download | gcc-ebdc961f811262a5002760a0af6d15a2a0357fc8.zip gcc-ebdc961f811262a5002760a0af6d15a2a0357fc8.tar.gz gcc-ebdc961f811262a5002760a0af6d15a2a0357fc8.tar.bz2 |
gccrs: Dump inner attrs for Dump::visit(BlockExpr &)
Refer to `BlockExpr::as_string ()`, dump inner attrs for `Dump::visit`.
Add visit (AST::Attribute &).
gcc/rust/ChangeLog:
* hir/rust-hir-dump.cc (Dump::go): fix format
(Dump::visit): impl `visit (AST::Attribute &)`, dump inner attrs and
`visit (Lifetime &)`
* hir/rust-hir-dump.h:add `visit (AST::Attribute &)`
Signed-off-by: Jiakun Fan <120090316@link.cuhk.edu.cn>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.h')
-rw-r--r-- | gcc/rust/hir/rust-hir-dump.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.h b/gcc/rust/hir/rust-hir-dump.h index 39b8cc0..be73170 100644 --- a/gcc/rust/hir/rust-hir-dump.h +++ b/gcc/rust/hir/rust-hir-dump.h @@ -37,6 +37,7 @@ private: Indent indentation; std::ostream &stream; + void visit (AST::Attribute &attribute); virtual void visit (Lifetime &) override; virtual void visit (LifetimeParam &) override; virtual void visit (PathInExpression &) override; |