]> git.ipfire.org Git - people/ms/gcc.git/commit
parser: Parse external type item
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 27 Feb 2023 09:10:51 +0000 (10:10 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 28 Feb 2023 17:00:02 +0000 (17:00 +0000)
commit689c421dd7a92bba7e31342a034fb25b85407b37
tree9e9a92f7040032e5b2622f350f3c59f24e3b8b45
parent5c2ed969a2d58217797cf2e938c0f833a50d7cb4
parser: Parse external type item

Add the code to parse type item declaration within an extern block.

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_external_type_item):
Add function to parser an external type item.
(Parser::parse_external_item):
Add identification and parsing for external type items.
* parse/rust-parse.h:
Add parser_external_type_item prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/parse/rust-parse-impl.h
gcc/rust/parse/rust-parse.h