]> gcc.gnu.org Git - gcc.git/commit
gccrs: Add new keyword utility class
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 8 Nov 2023 09:50:00 +0000 (10:50 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:13 +0000 (19:13 +0100)
commit0344e23236c8e28b80ce1b14a3a4394918953f2e
tree2f3179ab85b009befa9e649a4bac476c683223ec
parent65de922f9bdb52b308430d2ae11b99c2c98db053
gccrs: Add new keyword utility class

Much like attributes values, keywords are known beforehand and never
change. Instead of relying on handcrafted string we could centralize
everything in one place. We may require to check whether a word is a
keyword, which can now be done easily thanks to the keyword set.

gcc/rust/ChangeLog:

* Make-lang.in: Add rust-keyword-values.cc to the list.
* util/rust-keyword-values.cc: New file.
* util/rust-keyword-values.h: New file.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/Make-lang.in
gcc/rust/util/rust-keyword-values.cc [new file with mode: 0644]
gcc/rust/util/rust-keyword-values.h [new file with mode: 0644]
This page took 0.056028 seconds and 5 git commands to generate.