]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Make use of the Contextual visitor in validation
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 26 Oct 2023 11:30:28 +0000 (13:30 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:11 +0000 (19:13 +0100)
commit222f27d3ac159f1c56b670f336fb515e84491df4
treead9ba66147028eb829fd229c446b02bbc45404a4
parentddcd4c96757d1f9a962b24eca61cac3f8068a155
gccrs: Make use of the Contextual visitor in validation

Use the new contextual ast visitor to reduce the amount of code in the
ast validation visitor.

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit): Adapt
the call to the new visit functions.
(ASTValidation::check): Launch the parent class visitor root function.
* checks/errors/rust-ast-validation.h (class ASTValidation): Inherit
from the contextual visitor.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/checks/errors/rust-ast-validation.cc
gcc/rust/checks/errors/rust-ast-validation.h