gccrs: Add ast validation checker
commitf24d408342417ace26ec9a378189ebad6522c637
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 24 Oct 2023 14:08:00 +0000 (24 16:08 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:10 +0000 (16 19:13 +0100)
tree6e7cda7555a5a8627bfbb44963597c03029708dd
parentd430d0bac3e447b323c3ff70bdfb83555e5cadd1
gccrs: Add ast validation checker

Add a new visitor to validate a given ast after the expansion pass.

gcc/rust/ChangeLog:

* Make-lang.in: Add the new object file the list.
* checks/errors/rust-ast-validation.cc: New file.
* checks/errors/rust-ast-validation.h: New file.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/Make-lang.in
gcc/rust/checks/errors/rust-ast-validation.cc [new file with mode: 0644]
gcc/rust/checks/errors/rust-ast-validation.h [new file with mode: 0644]