Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cfbd1f1d authored by Martin Geisler's avatar Martin Geisler Committed by Cherrypicker Worker
Browse files

pdl: Add support for enums

This adds support for parsing and serializing enum fields.

The canonical test vectors work.

Tests have been added to the canonical PDL files: they demonstrate
that we can generate valid Rust code. A test was added to show that we
need “#[repr(u64)]” for an enum with a maximum discriminant.

Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
(cherry picked from https://android-review.googlesource.com/q/commit:d9892bbd6b0e83bcc03abb9b20f5c1f3bc856433)
Merged-In: Id65bf831ddde8ade9780f89096842ef9516cf4c3
Change-Id: Id65bf831ddde8ade9780f89096842ef9516cf4c3
parent a32428f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment