-
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
Make matter IDL generate more cases where attributes have default values #25948
Merged
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
andy31415
commented
Apr 3, 2023
examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter
Outdated
Show resolved
Hide resolved
PR #25948: Size comparison from bf6dc7b to 4a349d8 Full report (1 build for cc32xx)
|
andy31415
commented
Apr 3, 2023
pullapprove
bot
requested review from
amitnj,
anush-apple,
arkq,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
cliffamzn,
CodeChronos928,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
franck-apple,
gjc13,
harimau-qirex,
harsha-rajendran,
hawk248,
jelderton and
jepenven-silabs
April 3, 2023 17:00
pullapprove
bot
requested review from
mspang,
nivi-apple,
robszewczyk,
saurabhst,
selissia,
sharadb-amazon,
tcarmelveilleux,
tecimovic,
tehampson,
turon,
vijs,
vivien-apple,
woody-apple,
xylophone21,
younghak-hwang and
yufengwangca
April 3, 2023 17:00
PR #25948: Size comparison from bf6dc7b to dbdaa5f Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
bzbarsky-apple
requested changes
Apr 3, 2023
PR #25948: Size comparison from bf6dc7b to ad0c1a0 Full report (1 build for cc32xx)
|
PR #25948: Size comparison from bf6dc7b to 0e880f6 Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
bzbarsky-apple
approved these changes
Apr 5, 2023
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.
Previous logic was rejecting anything that had Javascript falsy, this would in particular break nullable attributes with numeric defaults of 0 (i.e. it would default to null, but we want actual non-null 0 default).
Fixes #25946
I have also switched the iteration over attributes to use
enabled_attributes_for_cluster_and_side
instead of user_cluster_attributes, to be consistent with server side cluster codegen. This seems to also result in slightly different defaults (which seem more correct).