-
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
Codegen a ResponseType for command cluster objects and use it to simplify templates #11624
Merged
bzbarsky-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:output-response-types
Nov 11, 2021
Merged
Codegen a ResponseType for command cluster objects and use it to simplify templates #11624
bzbarsky-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:output-response-types
Nov 11, 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
bzbarsky-apple
requested review from
mrjerryjohns,
yunhanw-google and
vivien-apple
November 10, 2021 09:25
pullapprove
bot
requested review from
andy31415,
anush-apple,
balducci-apple,
carol-apple,
chrisdecenzo,
chulspro,
Damian-Nordic,
electrocucaracha,
erjiaqing,
franck-apple,
harimau-qirex,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel,
LuDuda,
lzgrablic02,
mlepage-google,
msandstedt,
pan-apple,
robszewczyk,
sagar-apple and
saurabhst
November 10, 2021 09:25
pullapprove
bot
requested review from
selissia,
tecimovic,
wbschiller,
woody-apple and
yufengwangca
November 10, 2021 09:25
PR #11624: Size comparison from 30e1b97 to 8f62cfe Full report (36 builds for efr32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
bzbarsky-apple
force-pushed
the
output-response-types
branch
from
November 10, 2021 16:00
8f62cfe
to
d8ab372
Compare
PR #11624: Size comparison from 125ad20 to d8ab372 Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
mrjerryjohns
approved these changes
Nov 10, 2021
/rebase |
woody-apple
force-pushed
the
output-response-types
branch
from
November 10, 2021 21:33
d8ab372
to
51bc7d6
Compare
yunhanw-google
approved these changes
Nov 10, 2021
PR #11624: Size comparison from 0528ce0 to 51bc7d6 Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
woody-apple
approved these changes
Nov 11, 2021
@msandstedt @saurabhst @jepenven-silabs @jmartinez-silabs @Damian-Nordic @LuDuda Please take a look? |
saurabhst
approved these changes
Nov 11, 2021
PSONALl
pushed a commit
to PSONALl/connectedhomeip
that referenced
this pull request
Dec 3, 2021
…lify templates (project-chip#11624) * Output a ResponseType for command Type structs. * Use ResponseType in our InvokeCommand templates.
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.
Problem
It's possible to mess up sending a command by saying you are sending command X and expecting response Y, when Y is not the response to command X.
Change overview
Hang the response type off the command type.
Testing
No behavior changes, just simpler code (outside the cluster-objects file, at least).