diff options
author | Mark Wielaard <mark@klomp.org> | 2021-09-06 00:48:10 +0200 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-09-06 10:31:43 +0100 |
commit | a3ac8573495919f1c8f6d6cca6578edd5e3ab01e (patch) | |
tree | 9be0522fb83ecfc8bec9c559b58cd7b9e57e848c /gcc/explow.c | |
parent | 2bbe1af01db19b67cf668384b096e0e6a01765e6 (diff) | |
download | gcc-a3ac8573495919f1c8f6d6cca6578edd5e3ab01e.zip gcc-a3ac8573495919f1c8f6d6cca6578edd5e3ab01e.tar.gz gcc-a3ac8573495919f1c8f6d6cca6578edd5e3ab01e.tar.bz2 |
Resolve Enums and EnumItems
Generate paths for Enum and EnumItem AST NodeIds and resolve the types
of tuple and struct enum items.
EnumItems always have the Enum as prefix. To make this work for
ResolveStms (declaration statements are not given a canonical path) we
add an enum_prefix to be used when resolving EnumItems.
For ResolveType the tuple and struct fields get resolved using the
Enum type scope.
Add tests for toplevel or stmt enums with duplicate variant names. And
adjust the tuple_enum_variants.rs testcase to expect unused name
warnings.
Diffstat (limited to 'gcc/explow.c')
0 files changed, 0 insertions, 0 deletions