Add support for metadata attributes for enum values (#7567) (#7568)

* Add support for metadata attributes for enum values (#7567)

* Fix path lookup in flatc test

* Try a fix for Windows paths

* Convert path to string to fix Windows error
This commit is contained in:
Piotr Dziwiński
2022-10-07 13:18:00 +13:00
committed by GitHub
parent c92e78a9f8
commit 54418f371b
9 changed files with 195 additions and 46 deletions

View File

@@ -0,0 +1,8 @@
attribute display_name;
enum ValAttributes : int
{
Val1 = 0 (display_name: "Value 1"),
Val2 (display_name: "Value 2"),
Val3 (deprecated, display_name: "Value 3 (deprecated)"),
}