aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-04-03 18:43:08 +0300
committerCohenArthur <arthur.cohen@embecosm.com>2023-04-17 08:46:19 +0000
commit8129f20c818a5519491d7291a5e236bcb98845df (patch)
tree7c237ceda322933240a052102b9774f9f8681fc1 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent8664ba4cf289bf7738fb4766d099ace571046171 (diff)
downloadgcc-8129f20c818a5519491d7291a5e236bcb98845df.zip
gcc-8129f20c818a5519491d7291a5e236bcb98845df.tar.gz
gcc-8129f20c818a5519491d7291a5e236bcb98845df.tar.bz2
ast: Make AST::Kind an enum class
We're going to introduce AST::Kind::IDENTIFIER next, and with the default C-style enum member scoping, this would cause name clashes. Instead, convert AST::Kind into an enum class, so that its members are properly namespaced. gcc/rust/ChangeLog: * ast/rust-ast.h (Kind): Convert into a C++ enum class * expand/rust-macro-builtins.cc: Adapt to the change Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions