diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-23 16:50:39 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:13:36 +0100 |
commit | a8a27b074f40cbac16af37db4c03a1128ce8f201 (patch) | |
tree | d072187d0bf5823cf013570946f0b33391a162b8 /gcc/rust/expand/rust-attribute-visitor.cc | |
parent | 8b8701243c280559fa8d2426bf8fb0b13d1f563a (diff) | |
download | gcc-a8a27b074f40cbac16af37db4c03a1128ce8f201.zip gcc-a8a27b074f40cbac16af37db4c03a1128ce8f201.tar.gz gcc-a8a27b074f40cbac16af37db4c03a1128ce8f201.tar.bz2 |
gccrs: ast: Add ExternalTypeItem node
gcc/rust/ChangeLog:
* ast/rust-item.h (class ExternalTypeItem): New class.
* ast/rust-ast.cc (ExternalTypeItem::as_string): New function.
(ExternalTypeItem::accept_vis): Likewise.
* ast/rust-ast-full-decls.h (class ExternalTypeItem): Declare class.
* ast/rust-ast-dump.cc (Dump::visit): Add base visitor for ExternalTypeItem.
* ast/rust-ast-dump.h: Likewise.
* ast/rust-ast-visitor.h: Likewise.
* checks/errors/rust-feature-gate.h: Likewise.
* expand/rust-attribute-visitor.cc (AttrVisitor::visit): Likewise.
* expand/rust-attribute-visitor.h: Likewise.
* hir/rust-ast-lower-base.cc (ASTLoweringBase::visit): Likewise.
* hir/rust-ast-lower-base.h: Likewise.
* resolve/rust-ast-resolve-base.cc (ResolverBase::visit): Likewise.
* resolve/rust-ast-resolve-base.h: Likewise.
* resolve/rust-early-name-resolver.cc (EarlyNameResolver::visit): Likewise.
* resolve/rust-early-name-resolver.h: Likewise.
* util/rust-attributes.cc (AttributeChecker::visit): Likewise.
* util/rust-attributes.h: Likewise.
Diffstat (limited to 'gcc/rust/expand/rust-attribute-visitor.cc')
-rw-r--r-- | gcc/rust/expand/rust-attribute-visitor.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-attribute-visitor.cc b/gcc/rust/expand/rust-attribute-visitor.cc index cbcfe30..e628927 100644 --- a/gcc/rust/expand/rust-attribute-visitor.cc +++ b/gcc/rust/expand/rust-attribute-visitor.cc @@ -2734,6 +2734,13 @@ AttrVisitor::visit (AST::TraitImpl &impl) expand_macro_children (MacroExpander::TRAIT_IMPL, impl.get_impl_items (), extractor); } + +void +AttrVisitor::visit (AST::ExternalTypeItem &item) +{ + // TODO: ARTHUR +} + void AttrVisitor::visit (AST::ExternalStaticItem &item) { @@ -2757,6 +2764,7 @@ AttrVisitor::visit (AST::ExternalStaticItem &item) expander.pop_context (); } + void AttrVisitor::visit (AST::ExternalFunctionItem &item) { |