Skip to content

Commit

Permalink
Make expand visitor inherit from default visitor
Browse files Browse the repository at this point in the history
Many visit functions in the expand visitor simply visit their components
like the default visitor. Making the expand visitor inherit from the
default visitor allows us to keep all visitor in sync without having to
change every visitor.

gcc/rust/ChangeLog:

	* expand/rust-expand-visitor.cc (ExpandVisitor::go): Add call to visit
	on the crate.
	(ExpandVisitor::visit): Remove some visit functions in favor of their
	default visitor counterpart.
	* expand/rust-expand-visitor.h (class ExpandVisitor): Inherit from
	default visitor and remove now useless function prototypes.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Dec 11, 2023
1 parent 1748242 commit 61d4955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 565 deletions.
Loading

0 comments on commit 61d4955

Please sign in to comment.