]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add attributes checker
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 23 Aug 2022 15:27:23 +0000 (16:27 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:05 +0000 (14:00 +0100)
commit2e7fc8780e0d5009bc8edd116378a25dea8cb1fa
tree42385a3fd9a961a9295df6daadd9e4f21f474430
parent9a4fee5f57c1ba6844407f81a6a40c30bc2735d4
gccrs: Add attributes checker

The attribute checker is responsible for checking the validity of various
attributes including built-in ones. It is currently unfinished and will
receive some modifications, as well as become the host of some existing
code in the compiler which needs to be refactored. One of its
responsibilities is to make sure that arguments given to built-in
attributes are correct, or contain the correct type of information. This
visitor also checks that an attribute is allowed to be used in the current
particular context.

gcc/rust/
* util/rust-attributes.cc: New.
* util/rust-attributes.h: New.
gcc/rust/util/rust-attributes.cc [new file with mode: 0644]
gcc/rust/util/rust-attributes.h [new file with mode: 0644]