diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-04 13:53:34 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:43 +0100 |
commit | d8a7cee1ea6469615dc06d5d786182a279042637 (patch) | |
tree | b18e2d5b328e010c73a74569265053e84ab9e486 /gcc | |
parent | 44e67ceee62cf08dd2e02886c3379263eb7d64e3 (diff) | |
download | gcc-d8a7cee1ea6469615dc06d5d786182a279042637.zip gcc-d8a7cee1ea6469615dc06d5d786182a279042637.tar.gz gcc-d8a7cee1ea6469615dc06d5d786182a279042637.tar.bz2 |
gccrs: ast: Output union's outer attributes
Output a union's outer attributes in a tokenstream.
gcc/rust/ChangeLog:
* ast/rust-ast-tokenstream.cc (TokenStream::visit): Add visitor
to the union's outer attributes.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-tokenstream.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc index 450767d..761e899 100644 --- a/gcc/rust/ast/rust-ast-tokenstream.cc +++ b/gcc/rust/ast/rust-ast-tokenstream.cc @@ -1952,6 +1952,7 @@ TokenStream::visit (Enum &enumeration) void TokenStream::visit (Union &union_item) { + visit_items_as_lines (union_item.get_outer_attrs ()); auto id = union_item.get_identifier (); tokens.push_back ( Rust::Token::make_identifier (union_item.get_locus (), "union")); |