mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +00:00
dawn_wire: Remove unused support of "const*const*"
This patch removes the support of annotation "const*const*" in the template WireCmd.cpp as it is not used in current Dawn wire implementation. BUG=chromium:1266727 Change-Id: I4c4d68ccc050edb5f855094910440e90aef2bc4a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/72040 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
b6d80e027d
commit
264f239259
@@ -38,7 +38,7 @@ Most items and sub-items can include a list of `"tags"`, which, if specified, co
|
||||
A **record** is a list of **record members**, each of which is a dictionary with the following schema:
|
||||
- `"name"` a string
|
||||
- `"type"` a string, the name of the base type for this member
|
||||
- `"annotation"` a string, default to "value". Define the C annotation to apply to the base type. Allowed annotations are `"value"` (the default), `"*"`, `"const*"`, `"const*const*"`
|
||||
- `"annotation"` a string, default to "value". Define the C annotation to apply to the base type. Allowed annotations are `"value"` (the default), `"*"`, `"const*"`
|
||||
- `"length"` (default to 1 if not set), a string. Defines length of the array pointed to for pointer arguments. If not set the length is implicitly 1 (so not an array), but otherwise it can be set to the name of another member in the same record that will contain the length of the array (this is heavily used in the `fooCount` `foos` pattern in the API). As a special case `"strlen"` can be used for `const char*` record members to denote that the length should be determined with `strlen`.
|
||||
- `"optional"` (default to false) a boolean that says whether this member is optional. Member records can be optional if they are pointers (otherwise dawn_wire will always try to dereference them), objects (otherwise dawn_wire will always try to encode their ID and crash), or if they have a `"default"` key. Optional pointers and objects will always default to `nullptr`.
|
||||
- `"default"` (optional) a number or string. If set the record member will use that value as default value. Depending on the member's category it can be a number, a string containing a number, or the name of an enum/bitmask value.
|
||||
|
||||
Reference in New Issue
Block a user