-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be a bit more consistent about type handling in ZAP templates. #10718
Merged
woody-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:more-consistent-typing
Oct 21, 2021
Merged
Be a bit more consistent about type handling in ZAP templates. #10718
woody-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:more-consistent-typing
Oct 21, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
andy31415,
anush-apple,
balducci-apple,
carol-apple,
chrisdecenzo,
chulspro,
Damian-Nordic,
emargolis,
franck-apple,
harimau-qirex,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
kpschoedel,
LuDuda,
mrjerryjohns,
msandstedt,
mspang,
pan-apple,
robszewczyk,
sagar-apple,
saurabhst,
shana-apple,
tcarmelveilleux,
wbschiller and
woody-apple
October 20, 2021 17:39
PR #10718: Size comparison from 4a9d84d to dcdf6ee 12 builds (for efr32, k32w, p6, qpg, telink)
10 builds (for linux, mbed)
2 builds (for esp32)
10 builds (for nrfconnect)
|
yunhanw-google
approved these changes
Oct 20, 2021
bzbarsky-apple
force-pushed
the
more-consistent-typing
branch
from
October 20, 2021 20:14
dcdf6ee
to
6c898fe
Compare
PR #10718: Size comparison from b06b55c to 6c898fe 22 builds (for efr32, k32w, linux, mbed, p6, qpg, telink)
12 builds (for esp32, nrfconnect)
|
@vivien-apple @msandstedt @saurabhst @jepenven-silabs @jmartinez-silabs @LuDuda @Damian-Nordic @woody-apple Please take a look? |
bzbarsky-apple
force-pushed
the
more-consistent-typing
branch
from
October 21, 2021 16:47
6c898fe
to
16905b3
Compare
PR #10718: Size comparison from b5ad57f to 16905b3 8 builds (for k32w, p6, qpg, telink)
14 builds (for efr32, linux, mbed)
|
/rebase |
woody-apple
force-pushed
the
more-consistent-typing
branch
from
October 21, 2021 17:39
16905b3
to
9b2ff7b
Compare
/rebase |
* Instead of checking for "item.type == 'boolean'", which would not work right for command args (where the type is "BOOLEAN"), go through our normal type-mapping machinery and then use the resulting uniform output. * Add "single" to our atomic type overrides and remove manual handling of it in zapTypeToClusterObjectType. This incidentally fixes all the generated accessors for single-typed attributes. * Fix a debugging exception message to include the value that could not be handled in a more-correct way.
woody-apple
force-pushed
the
more-consistent-typing
branch
from
October 21, 2021 18:17
9b2ff7b
to
8e6694c
Compare
PR #10718: Size comparison from caeb26b to 8e6694c 5 builds (for p6, qpg, telink)
17 builds (for efr32, k32w, linux, mbed)
12 builds (for esp32, nrfconnect)
|
mrjerryjohns
approved these changes
Oct 21, 2021
saurabhst
approved these changes
Oct 21, 2021
woody-apple
approved these changes
Oct 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of checking for "item.type == 'boolean'", which would not
work right for command args (where the type is "BOOLEAN"), go
through our normal type-mapping machinery and then use the resulting
uniform output.
Add "single" to our atomic type overrides and remove manual handling
of it in zapTypeToClusterObjectType. This incidentally fixes all
the generated accessors for single-typed attributes.
Fix a debugging exception message to include the value that could not be
handled in a more-correct way.
Problem
Want to stop lower-casing attribute types in the ZAP database. Ran into codegen breakage when I did that, for the "boolean" thing.
Change overview
See above.
Testing
No behavior changes or generated code changes apart from the fixed "single" bits.