-
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
Use enum class for GeneralCommissioning::RegulatoryLocationType #13374
Use enum class for GeneralCommissioning::RegulatoryLocationType #13374
Conversation
I'm not 100% happy with this patch, but it may let me ask a question. Basically I have added a lot of This is because But I have some doubts here. The reason is that Do someone has any opinion on that ? |
I believe a long term strategy would be to make sure our tooling supports separate generated files in some way, so that we have have some generic includes shared. Original zap logic was that "app generates" however we have a lot of shared code at various levels. I think we should find a way to generate what we need where we need. I am not sure that is attainable though in the medium term, especially within a 'end of january FC' date. A proposed alternative:
|
src/app/clusters/general-commissioning-server/general-commissioning-server.cpp
Outdated
Show resolved
Hide resolved
So my take on this is that having configuration manager depend on non-app-specific generated code (i.e. "depend on the spec-defined types") should be fine. This is not app-specific code; this is code generated based on just XML without taking any .zap files into account. |
Oh, and using |
00ba343
to
d720474
Compare
I did use |
|
d720474
to
eb84cf8
Compare
PR #13374: Size comparison from 36a759d to eb84cf8 Increases (2 builds for linux)
Full report (14 builds for efr32, k32w, linux, p6, qpg, telink)
|
I would prefer to not have 'app' in names - ideally things that are SDK should be somewhere inside SDK that is not src/app as that seems too high level. Platform is probably one of the lowest levels we have, so it should depend on other very low level (core or core/support ... or maybe some new 'chip-types' library). |
We've already moved the manually-defined app-specified types into |
Problem
RegulatoryLocationType
fromconnectedhomeip/src/app/zap-templates/zcl/data-model/chip/general-commissioning-cluster.xml
Line 26 in d24eff1
Change overview
isWeaklyTypedEnum