aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse-impl.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-27 14:12:20 +0100
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-12-11 12:27:32 +0000
commit61d4955bb761c9447e59b505bcaad91b66ae49fd (patch)
tree29a79def53dfe7eb5b972033928f654664b2fb86 /gcc/rust/parse/rust-parse-impl.h
parent17482423400dbbe7f1758e645641346a4a1824cf (diff)
downloadgcc-61d4955bb761c9447e59b505bcaad91b66ae49fd.zip
gcc-61d4955bb761c9447e59b505bcaad91b66ae49fd.tar.gz
gcc-61d4955bb761c9447e59b505bcaad91b66ae49fd.tar.bz2
Make expand visitor inherit from default visitor
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
0 files changed, 0 insertions, 0 deletions