gccrs: Add unused variable scan
commit4d67468d1d40f4d60a3760d47b74912c13621ada
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 23 Aug 2022 15:35:44 +0000 (23 16:35 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:06 +0000 (13 14:00 +0100)
treefea867f7479eb602bd29f6574cd4483ccef8ad98
parent520b52b24e73d2ec48fd6f492266df42c218bdf2
gccrs: Add unused variable scan

This is a simple walk_tree which acts on the monomorphized code by walking
the compiled translation unit of functions.

gcc/rust/
* checks/lints/rust-lint-unused-var.cc: New.
* checks/lints/rust-lint-unused-var.h: New.
gcc/rust/checks/lints/rust-lint-unused-var.cc [new file with mode: 0644]
gcc/rust/checks/lints/rust-lint-unused-var.h [new file with mode: 0644]