diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b8c0efd60d1ecf..d15e6875285c9d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -292,8 +292,8 @@ jobs: git grep -I -n 'emberAfWriteAttribute' -- './*' \ ':(exclude).github/workflows/lint.yml' \ ':(exclude)examples/common/pigweed/rpc_services/Attributes.h' \ - ':(exclude)src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp' \ - ':(exclude)src/app/codegen-data-model-provider/tests/EmberReadWriteOverride.cpp' \ + ':(exclude)src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp' \ + ':(exclude)src/data-model-providers/codegen/tests/EmberReadWriteOverride.cpp' \ ':(exclude)src/app/dynamic_server/DynamicDispatcher.cpp' \ ':(exclude)src/app/util/attribute-table.cpp' \ ':(exclude)src/app/util/attribute-table.h' \ diff --git a/examples/air-purifier-app/ameba/main/chipinterface.cpp b/examples/air-purifier-app/ameba/main/chipinterface.cpp index 368fa8eee05a8a..766197dec366ae 100644 --- a/examples/air-purifier-app/ameba/main/chipinterface.cpp +++ b/examples/air-purifier-app/ameba/main/chipinterface.cpp @@ -30,9 +30,9 @@ #include #include #include -#include #include #include +#include #include #include #include diff --git a/examples/air-purifier-app/cc32xx/main/AppTask.cpp b/examples/air-purifier-app/cc32xx/main/AppTask.cpp index a14ccbeff0a900..b604271d5f87b8 100644 --- a/examples/air-purifier-app/cc32xx/main/AppTask.cpp +++ b/examples/air-purifier-app/cc32xx/main/AppTask.cpp @@ -38,9 +38,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/examples/all-clusters-app/ameba/main/chipinterface.cpp b/examples/all-clusters-app/ameba/main/chipinterface.cpp index 7ba25ed011cd41..80a98b9c3d4c69 100644 --- a/examples/all-clusters-app/ameba/main/chipinterface.cpp +++ b/examples/all-clusters-app/ameba/main/chipinterface.cpp @@ -31,10 +31,10 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp b/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp index 3f56626cd97b59..5c416f847d3293 100644 --- a/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp +++ b/examples/all-clusters-app/infineon/psoc6/src/AppTask.cpp @@ -25,7 +25,6 @@ #include "LEDWidget.h" #include #include -#include #include #include #include @@ -35,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/all-clusters-app/linux/fuzzing-main.cpp b/examples/all-clusters-app/linux/fuzzing-main.cpp index 565e8198c26d25..2b41a2517a16bb 100644 --- a/examples/all-clusters-app/linux/fuzzing-main.cpp +++ b/examples/all-clusters-app/linux/fuzzing-main.cpp @@ -16,8 +16,8 @@ */ #include "AppMain.h" -#include #include +#include #include diff --git a/examples/all-clusters-app/nrfconnect/main/AppTask.cpp b/examples/all-clusters-app/nrfconnect/main/AppTask.cpp index 44a656279118a4..44a0a056bf44f2 100644 --- a/examples/all-clusters-app/nrfconnect/main/AppTask.cpp +++ b/examples/all-clusters-app/nrfconnect/main/AppTask.cpp @@ -30,9 +30,9 @@ #include #include #include -#include #include #include +#include #include #include diff --git a/examples/all-clusters-app/nxp/mw320/main.cpp b/examples/all-clusters-app/nxp/mw320/main.cpp index fbf99510c3cbfa..a828706b0fa67f 100644 --- a/examples/all-clusters-app/nxp/mw320/main.cpp +++ b/examples/all-clusters-app/nxp/mw320/main.cpp @@ -32,12 +32,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp b/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp index 7e2dc227f69b56..8f18742ca5b42d 100644 --- a/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp +++ b/examples/all-clusters-minimal-app/ameba/main/chipinterface.cpp @@ -27,12 +27,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp b/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp index 893f585717dc9f..1c0008b63bb7cb 100644 --- a/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp +++ b/examples/all-clusters-minimal-app/infineon/psoc6/src/AppTask.cpp @@ -25,7 +25,6 @@ #include "LEDWidget.h" #include #include -#include #include #include #include @@ -35,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/all-clusters-minimal-app/linux/fuzzing-main.cpp b/examples/all-clusters-minimal-app/linux/fuzzing-main.cpp index df61dc538ad10c..4e6b390225819c 100644 --- a/examples/all-clusters-minimal-app/linux/fuzzing-main.cpp +++ b/examples/all-clusters-minimal-app/linux/fuzzing-main.cpp @@ -16,8 +16,8 @@ */ #include "AppMain.h" -#include #include +#include using namespace chip; using namespace chip::DeviceLayer; diff --git a/examples/all-clusters-minimal-app/mbed/main/AppTask.cpp b/examples/all-clusters-minimal-app/mbed/main/AppTask.cpp index 16e1a665da4518..81f5f15a59c1e6 100644 --- a/examples/all-clusters-minimal-app/mbed/main/AppTask.cpp +++ b/examples/all-clusters-minimal-app/mbed/main/AppTask.cpp @@ -20,12 +20,12 @@ #include "LEDWidget.h" #include -#include #include #include #include #include #include +#include #include #include diff --git a/examples/all-clusters-minimal-app/nrfconnect/main/AppTask.cpp b/examples/all-clusters-minimal-app/nrfconnect/main/AppTask.cpp index 7cad0ac8a13a00..9254d52d270ee4 100644 --- a/examples/all-clusters-minimal-app/nrfconnect/main/AppTask.cpp +++ b/examples/all-clusters-minimal-app/nrfconnect/main/AppTask.cpp @@ -22,9 +22,9 @@ #include "LEDUtil.h" #include "binding-handler.h" -#include #include #include +#include #include #include diff --git a/examples/chef/ameba/main/chipinterface.cpp b/examples/chef/ameba/main/chipinterface.cpp index e54572c9be1fb0..52aed5ff4d39a9 100644 --- a/examples/chef/ameba/main/chipinterface.cpp +++ b/examples/chef/ameba/main/chipinterface.cpp @@ -28,12 +28,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/chef/esp32/main/main.cpp b/examples/chef/esp32/main/main.cpp index 29de25b804d59a..0abd996d4182a4 100644 --- a/examples/chef/esp32/main/main.cpp +++ b/examples/chef/esp32/main/main.cpp @@ -30,9 +30,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/examples/chef/nrfconnect/main.cpp b/examples/chef/nrfconnect/main.cpp index fa8cfc3820032b..ab2fc8cd51fb25 100644 --- a/examples/chef/nrfconnect/main.cpp +++ b/examples/chef/nrfconnect/main.cpp @@ -25,9 +25,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/examples/chip-tool/commands/common/CHIPCommand.cpp b/examples/chip-tool/commands/common/CHIPCommand.cpp index b37bed15afb3d7..5401f907bc874d 100644 --- a/examples/chip-tool/commands/common/CHIPCommand.cpp +++ b/examples/chip-tool/commands/common/CHIPCommand.cpp @@ -18,11 +18,11 @@ #include "CHIPCommand.h" -#include #include #include #include #include +#include #include #include #include diff --git a/examples/contact-sensor-app/nxp/k32w0/main/AppTask.cpp b/examples/contact-sensor-app/nxp/k32w0/main/AppTask.cpp index 9beea7e0487814..f9fe8ef8cd5c7a 100644 --- a/examples/contact-sensor-app/nxp/k32w0/main/AppTask.cpp +++ b/examples/contact-sensor-app/nxp/k32w0/main/AppTask.cpp @@ -18,9 +18,9 @@ */ #include "AppTask.h" #include "AppEvent.h" -#include #include #include +#include #include #include diff --git a/examples/fabric-admin/commands/common/CHIPCommand.cpp b/examples/fabric-admin/commands/common/CHIPCommand.cpp index bf8da172d3aa1f..c5f56d2a690bc7 100644 --- a/examples/fabric-admin/commands/common/CHIPCommand.cpp +++ b/examples/fabric-admin/commands/common/CHIPCommand.cpp @@ -20,9 +20,9 @@ #include "IcdManager.h" -#include #include #include +#include #include #include #include diff --git a/examples/light-switch-app/ameba/main/chipinterface.cpp b/examples/light-switch-app/ameba/main/chipinterface.cpp index e892030933d06e..f883f0e030f9eb 100644 --- a/examples/light-switch-app/ameba/main/chipinterface.cpp +++ b/examples/light-switch-app/ameba/main/chipinterface.cpp @@ -29,10 +29,10 @@ #include #include -#include #include #include #include +#include #include #include #include diff --git a/examples/light-switch-app/cc13x4_26x4/src/AppTask.cpp b/examples/light-switch-app/cc13x4_26x4/src/AppTask.cpp index 31855e1621f7fe..ce836b0c264821 100644 --- a/examples/light-switch-app/cc13x4_26x4/src/AppTask.cpp +++ b/examples/light-switch-app/cc13x4_26x4/src/AppTask.cpp @@ -24,9 +24,9 @@ #include "FreeRTOS.h" -#include #include #include +#include #include #include diff --git a/examples/light-switch-app/genio/src/AppTask.cpp b/examples/light-switch-app/genio/src/AppTask.cpp index 2b3000e2ff9eb6..95adc2f402d925 100644 --- a/examples/light-switch-app/genio/src/AppTask.cpp +++ b/examples/light-switch-app/genio/src/AppTask.cpp @@ -27,10 +27,10 @@ #include #include -#include #include #include #include +#include #include diff --git a/examples/light-switch-app/nrfconnect/main/AppTask.cpp b/examples/light-switch-app/nrfconnect/main/AppTask.cpp index 7f9ec93e05576a..152e175afd1ad6 100644 --- a/examples/light-switch-app/nrfconnect/main/AppTask.cpp +++ b/examples/light-switch-app/nrfconnect/main/AppTask.cpp @@ -27,11 +27,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/examples/light-switch-app/qpg/src/AppTask.cpp b/examples/light-switch-app/qpg/src/AppTask.cpp index 1b57f10240ceaa..d9878c7fe31672 100644 --- a/examples/light-switch-app/qpg/src/AppTask.cpp +++ b/examples/light-switch-app/qpg/src/AppTask.cpp @@ -35,10 +35,10 @@ using namespace ::chip; #include #include #include -#include #include #include #include +#include #include #include diff --git a/examples/lighting-app/ameba/main/chipinterface.cpp b/examples/lighting-app/ameba/main/chipinterface.cpp index a12853e94de73d..0587d3134cadee 100644 --- a/examples/lighting-app/ameba/main/chipinterface.cpp +++ b/examples/lighting-app/ameba/main/chipinterface.cpp @@ -31,9 +31,9 @@ #include #include -#include #include #include +#include #include #include #include diff --git a/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp b/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp index 3e949dc7ba3b57..3ff950ba0ca1fb 100644 --- a/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp +++ b/examples/lighting-app/cc13x4_26x4/src/AppTask.cpp @@ -44,10 +44,10 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/examples/lighting-app/genio/src/AppTask.cpp b/examples/lighting-app/genio/src/AppTask.cpp index c5fa913e85d948..b6b31cec05abe7 100644 --- a/examples/lighting-app/genio/src/AppTask.cpp +++ b/examples/lighting-app/genio/src/AppTask.cpp @@ -29,10 +29,10 @@ #include #include #include -#include #include #include #include +#include #include diff --git a/examples/lighting-app/infineon/psoc6/src/AppTask.cpp b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp index 07c3024c0797ef..47d68bc3bead8a 100644 --- a/examples/lighting-app/infineon/psoc6/src/AppTask.cpp +++ b/examples/lighting-app/infineon/psoc6/src/AppTask.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include /* OTA related includes */ diff --git a/examples/lighting-app/mbed/main/AppTask.cpp b/examples/lighting-app/mbed/main/AppTask.cpp index bcae9d972f40fe..c4def4fe0ef006 100644 --- a/examples/lighting-app/mbed/main/AppTask.cpp +++ b/examples/lighting-app/mbed/main/AppTask.cpp @@ -20,12 +20,12 @@ #include "LEDWidget.h" #include "LightingManager.h" -#include #include #include #include #include #include +#include #include #include diff --git a/examples/lighting-app/nrfconnect/main/AppTask.cpp b/examples/lighting-app/nrfconnect/main/AppTask.cpp index 1427b811edb183..754b8db0b5d892 100644 --- a/examples/lighting-app/nrfconnect/main/AppTask.cpp +++ b/examples/lighting-app/nrfconnect/main/AppTask.cpp @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -37,6 +36,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/lighting-app/nxp/k32w0/main/AppTask.cpp b/examples/lighting-app/nxp/k32w0/main/AppTask.cpp index 7c0f895845146b..c6d3baf575a254 100644 --- a/examples/lighting-app/nxp/k32w0/main/AppTask.cpp +++ b/examples/lighting-app/nxp/k32w0/main/AppTask.cpp @@ -22,10 +22,10 @@ #include #include -#include #include #include #include +#include #include #include #include diff --git a/examples/lighting-app/qpg/src/AppTask.cpp b/examples/lighting-app/qpg/src/AppTask.cpp index 27386a625be497..53b255dfa8cb7e 100644 --- a/examples/lighting-app/qpg/src/AppTask.cpp +++ b/examples/lighting-app/qpg/src/AppTask.cpp @@ -35,9 +35,9 @@ #include #include #include -#include #include #include +#include #include #include diff --git a/examples/lighting-app/stm32/src/STM32WB5/AppTask.cpp b/examples/lighting-app/stm32/src/STM32WB5/AppTask.cpp index be4a3c4984c307..701493b777f381 100644 --- a/examples/lighting-app/stm32/src/STM32WB5/AppTask.cpp +++ b/examples/lighting-app/stm32/src/STM32WB5/AppTask.cpp @@ -37,12 +37,12 @@ /*Matter includes*/ #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/lit-icd-app/nrfconnect/main/AppTask.cpp b/examples/lit-icd-app/nrfconnect/main/AppTask.cpp index 49947fe9da3ef9..ca16beda30de8a 100644 --- a/examples/lit-icd-app/nrfconnect/main/AppTask.cpp +++ b/examples/lit-icd-app/nrfconnect/main/AppTask.cpp @@ -29,8 +29,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/examples/lock-app/cc13x4_26x4/src/AppTask.cpp b/examples/lock-app/cc13x4_26x4/src/AppTask.cpp index 4a6e9466a0dc2d..b67d795e1bb8b7 100644 --- a/examples/lock-app/cc13x4_26x4/src/AppTask.cpp +++ b/examples/lock-app/cc13x4_26x4/src/AppTask.cpp @@ -43,10 +43,10 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/examples/lock-app/cc32xx/main/AppTask.cpp b/examples/lock-app/cc32xx/main/AppTask.cpp index b783a862875fcd..4973c7a380676c 100644 --- a/examples/lock-app/cc32xx/main/AppTask.cpp +++ b/examples/lock-app/cc32xx/main/AppTask.cpp @@ -38,9 +38,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/examples/lock-app/genio/src/AppTask.cpp b/examples/lock-app/genio/src/AppTask.cpp index 6897792d2ed4b7..f27a2fcad76b9b 100644 --- a/examples/lock-app/genio/src/AppTask.cpp +++ b/examples/lock-app/genio/src/AppTask.cpp @@ -28,10 +28,10 @@ #include #include #include -#include #include #include #include +#include #include diff --git a/examples/lock-app/infineon/psoc6/src/AppTask.cpp b/examples/lock-app/infineon/psoc6/src/AppTask.cpp index 6ce6f57315267b..c4880e10937889 100644 --- a/examples/lock-app/infineon/psoc6/src/AppTask.cpp +++ b/examples/lock-app/infineon/psoc6/src/AppTask.cpp @@ -26,7 +26,6 @@ #include #include -#include #include #include #include @@ -35,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/lock-app/mbed/main/AppTask.cpp b/examples/lock-app/mbed/main/AppTask.cpp index 5e29d76b546e3f..851d96a61b4c75 100644 --- a/examples/lock-app/mbed/main/AppTask.cpp +++ b/examples/lock-app/mbed/main/AppTask.cpp @@ -20,12 +20,12 @@ #include "BoltLockManager.h" #include -#include #include #include #include #include #include +#include #include #include diff --git a/examples/lock-app/nrfconnect/main/AppTask.cpp b/examples/lock-app/nrfconnect/main/AppTask.cpp index 3a9d375d80b86a..9919fd8374f2d4 100644 --- a/examples/lock-app/nrfconnect/main/AppTask.cpp +++ b/examples/lock-app/nrfconnect/main/AppTask.cpp @@ -29,11 +29,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/examples/lock-app/nxp/k32w/k32w0/main/AppTask.cpp b/examples/lock-app/nxp/k32w/k32w0/main/AppTask.cpp index 6faccbffd0d593..4cfcd3942369f4 100644 --- a/examples/lock-app/nxp/k32w/k32w0/main/AppTask.cpp +++ b/examples/lock-app/nxp/k32w/k32w0/main/AppTask.cpp @@ -23,10 +23,10 @@ #include #include -#include #include #include #include +#include #include #include #include diff --git a/examples/lock-app/qpg/src/AppTask.cpp b/examples/lock-app/qpg/src/AppTask.cpp index cba2bfe569aa39..35d972aa7ae536 100644 --- a/examples/lock-app/qpg/src/AppTask.cpp +++ b/examples/lock-app/qpg/src/AppTask.cpp @@ -35,10 +35,10 @@ #include #include #include -#include #include #include #include +#include #include #include diff --git a/examples/log-source-app/linux/main.cpp b/examples/log-source-app/linux/main.cpp index a507d44741173b..65cb8b336fb682 100644 --- a/examples/log-source-app/linux/main.cpp +++ b/examples/log-source-app/linux/main.cpp @@ -20,11 +20,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/examples/ota-requestor-app/ameba/main/chipinterface.cpp b/examples/ota-requestor-app/ameba/main/chipinterface.cpp index 2a4dc911e6537c..4420de64da8861 100644 --- a/examples/ota-requestor-app/ameba/main/chipinterface.cpp +++ b/examples/ota-requestor-app/ameba/main/chipinterface.cpp @@ -24,9 +24,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/examples/ota-requestor-app/genio/src/AppTask.cpp b/examples/ota-requestor-app/genio/src/AppTask.cpp index 5130c5cf9a7c61..68826454a267bc 100644 --- a/examples/ota-requestor-app/genio/src/AppTask.cpp +++ b/examples/ota-requestor-app/genio/src/AppTask.cpp @@ -18,11 +18,11 @@ */ #include #include -#include #include #include #include #include +#include #include diff --git a/examples/ota-requestor-app/mbed/main/AppTask.cpp b/examples/ota-requestor-app/mbed/main/AppTask.cpp index 5b136311903079..cad1b73b00afed 100644 --- a/examples/ota-requestor-app/mbed/main/AppTask.cpp +++ b/examples/ota-requestor-app/mbed/main/AppTask.cpp @@ -19,12 +19,12 @@ #include "AppTask.h" #include -#include #include #include #include #include #include +#include #include #include diff --git a/examples/platform/asr/init_Matter.cpp b/examples/platform/asr/init_Matter.cpp index 864823001ab53e..85fbb241ce77c2 100644 --- a/examples/platform/asr/init_Matter.cpp +++ b/examples/platform/asr/init_Matter.cpp @@ -18,12 +18,12 @@ #include "AppConfig.h" #include -#include #include #include #include #include #include +#include #include #include #ifdef CONFIG_ENABLE_CHIP_SHELL diff --git a/examples/platform/beken/common/BekenAppServer.cpp b/examples/platform/beken/common/BekenAppServer.cpp index 3216787463457a..dce9bb823e768b 100644 --- a/examples/platform/beken/common/BekenAppServer.cpp +++ b/examples/platform/beken/common/BekenAppServer.cpp @@ -19,9 +19,9 @@ #include "BekenAppServer.h" #include "CHIPDeviceManager.h" #include -#include #include #include +#include #include using namespace chip; diff --git a/examples/platform/bouffalolab/common/plat/platform.cpp b/examples/platform/bouffalolab/common/plat/platform.cpp index 4a422a9cdbc0ee..50dccc666c2a9a 100644 --- a/examples/platform/bouffalolab/common/plat/platform.cpp +++ b/examples/platform/bouffalolab/common/plat/platform.cpp @@ -17,12 +17,12 @@ */ #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/examples/platform/esp32/common/Esp32AppServer.cpp b/examples/platform/esp32/common/Esp32AppServer.cpp index e88ee966db2568..978990a102f00a 100644 --- a/examples/platform/esp32/common/Esp32AppServer.cpp +++ b/examples/platform/esp32/common/Esp32AppServer.cpp @@ -23,9 +23,9 @@ #include #include #include -#include #include #include +#include #include #if CONFIG_CHIP_DEVICE_CONFIG_ENABLE_ENERGY_EVSE_TRIGGER diff --git a/examples/platform/infineon/cyw30739/matter_config.cpp b/examples/platform/infineon/cyw30739/matter_config.cpp index 0a244eabfbf37c..23fe5308baf713 100644 --- a/examples/platform/infineon/cyw30739/matter_config.cpp +++ b/examples/platform/infineon/cyw30739/matter_config.cpp @@ -37,10 +37,10 @@ #include "wiced_hal_i2c.h" #endif #include -#include #include #include #include +#include #include #include #include diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index 2f69e4da048cd0..aa437ec1203dc4 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -21,12 +21,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/platform/linux/BUILD.gn b/examples/platform/linux/BUILD.gn index 478b9960cd8c77..e3d00b1db200a9 100644 --- a/examples/platform/linux/BUILD.gn +++ b/examples/platform/linux/BUILD.gn @@ -94,7 +94,7 @@ source_set("app-main") { ":energy-reporting-test-event-trigger", ":smco-test-event-trigger", ":water-heater-management-test-event-trigger", - "${chip_root}/src/app/codegen-data-model-provider:instance-header", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/lib", "${chip_root}/src/platform/logging:default", ] @@ -164,8 +164,8 @@ source_set("commissioner-main") { "${chip_root}/src/lib", ] deps = [ - "${chip_root}/src/app/codegen-data-model-provider:instance-header", "${chip_root}/src/app/server", + "${chip_root}/src/data-model-providers/codegen:instance-header", ] if (chip_enable_transport_trace) { diff --git a/examples/platform/linux/CommissionerMain.cpp b/examples/platform/linux/CommissionerMain.cpp index aab4d6267c2e4c..75719017a5a380 100644 --- a/examples/platform/linux/CommissionerMain.cpp +++ b/examples/platform/linux/CommissionerMain.cpp @@ -21,12 +21,12 @@ #if CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/platform/nxp/common/app_task/source/AppTaskBase.cpp b/examples/platform/nxp/common/app_task/source/AppTaskBase.cpp index 596e4b8bcad78a..8490e1f1117ce7 100644 --- a/examples/platform/nxp/common/app_task/source/AppTaskBase.cpp +++ b/examples/platform/nxp/common/app_task/source/AppTaskBase.cpp @@ -26,9 +26,9 @@ #include #include -#include #include #include +#include #include diff --git a/examples/platform/nxp/se05x/linux/AppMain.cpp b/examples/platform/nxp/se05x/linux/AppMain.cpp index ffbdf5981fbab4..2d45f7dfeda0ba 100644 --- a/examples/platform/nxp/se05x/linux/AppMain.cpp +++ b/examples/platform/nxp/se05x/linux/AppMain.cpp @@ -20,11 +20,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/examples/platform/openiotsdk/app/openiotsdk_platform.cpp b/examples/platform/openiotsdk/app/openiotsdk_platform.cpp index f7df494997e751..d9a268c7c22f14 100644 --- a/examples/platform/openiotsdk/app/openiotsdk_platform.cpp +++ b/examples/platform/openiotsdk/app/openiotsdk_platform.cpp @@ -42,11 +42,11 @@ #include #ifdef USE_CHIP_DATA_MODEL -#include #include #include #include #include +#include #endif // USE_CHIP_DATA_MODEL #ifdef CHIP_OPEN_IOT_SDK_OTA_ENABLE diff --git a/examples/platform/silabs/MatterConfig.cpp b/examples/platform/silabs/MatterConfig.cpp index 043cd6feda032e..aba14c03e93284 100644 --- a/examples/platform/silabs/MatterConfig.cpp +++ b/examples/platform/silabs/MatterConfig.cpp @@ -56,7 +56,7 @@ static chip::DeviceLayer::Internal::Efr32PsaOperationalKeystore gOperationalKeys #include #include #include -#include +#include #ifdef SL_MATTER_TEST_EVENT_TRIGGER_ENABLED #include "SilabsTestEventTriggerDelegate.h" // nogncheck diff --git a/examples/platform/silabs/SiWx917/BUILD.gn b/examples/platform/silabs/SiWx917/BUILD.gn index 02769a993c3087..69379c11ff621e 100644 --- a/examples/platform/silabs/SiWx917/BUILD.gn +++ b/examples/platform/silabs/SiWx917/BUILD.gn @@ -189,7 +189,7 @@ source_set("siwx917-common") { public_deps += [ "${chip_root}/examples/providers:device_info_provider", - "${chip_root}/src/app/codegen-data-model-provider:instance-header", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/lib", "${chip_root}/src/setup_payload", ] diff --git a/examples/platform/silabs/efr32/BUILD.gn b/examples/platform/silabs/efr32/BUILD.gn index 46cfae71ecef99..843a28e8fcfe8d 100644 --- a/examples/platform/silabs/efr32/BUILD.gn +++ b/examples/platform/silabs/efr32/BUILD.gn @@ -215,8 +215,8 @@ source_set("efr32-common") { public_deps += [ "${chip_root}/examples/providers:device_info_provider", - "${chip_root}/src/app/codegen-data-model-provider:instance-header", "${chip_root}/src/app/server", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/lib", "${chip_root}/src/setup_payload", ] diff --git a/examples/platform/telink/common/src/AppTaskCommon.cpp b/examples/platform/telink/common/src/AppTaskCommon.cpp index 7ee70c33f76bf1..df1d3086ef2543 100644 --- a/examples/platform/telink/common/src/AppTaskCommon.cpp +++ b/examples/platform/telink/common/src/AppTaskCommon.cpp @@ -34,11 +34,11 @@ #include #include #include -#include #include #include #include #include +#include #if CONFIG_BOOTLOADER_MCUBOOT #include diff --git a/examples/pump-app/cc13x4_26x4/main/AppTask.cpp b/examples/pump-app/cc13x4_26x4/main/AppTask.cpp index 87bfe05f83aedf..08bd6ea4bad2c9 100644 --- a/examples/pump-app/cc13x4_26x4/main/AppTask.cpp +++ b/examples/pump-app/cc13x4_26x4/main/AppTask.cpp @@ -31,9 +31,9 @@ #include #include -#include #include #include +#include #if CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR #include diff --git a/examples/pump-app/nrfconnect/main/AppTask.cpp b/examples/pump-app/nrfconnect/main/AppTask.cpp index 8961c2fafbd09f..526f3b67531ad9 100644 --- a/examples/pump-app/nrfconnect/main/AppTask.cpp +++ b/examples/pump-app/nrfconnect/main/AppTask.cpp @@ -27,12 +27,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp b/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp index 1cb02ef522810f..0e9097e3cb48db 100644 --- a/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp +++ b/examples/pump-controller-app/cc13x4_26x4/main/AppTask.cpp @@ -38,7 +38,7 @@ #endif #include #include -#include +#include #include #include #include diff --git a/examples/pump-controller-app/nrfconnect/main/AppTask.cpp b/examples/pump-controller-app/nrfconnect/main/AppTask.cpp index d8f47f0e1eff08..a986a2c2ceca75 100644 --- a/examples/pump-controller-app/nrfconnect/main/AppTask.cpp +++ b/examples/pump-controller-app/nrfconnect/main/AppTask.cpp @@ -27,12 +27,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/examples/shell/cc13x4_26x4/main/AppTask.cpp b/examples/shell/cc13x4_26x4/main/AppTask.cpp index 93fd5e826ae596..c3f7a3da5b1286 100644 --- a/examples/shell/cc13x4_26x4/main/AppTask.cpp +++ b/examples/shell/cc13x4_26x4/main/AppTask.cpp @@ -22,9 +22,9 @@ #include "FreeRTOS.h" -#include #include #include +#include #include #include #include diff --git a/examples/shell/shell_common/cmd_server.cpp b/examples/shell/shell_common/cmd_server.cpp index 9f633158be76c6..eba9159a8e9a61 100644 --- a/examples/shell/shell_common/cmd_server.cpp +++ b/examples/shell/shell_common/cmd_server.cpp @@ -24,11 +24,11 @@ #include #include -#include #include #include #include #include +#include #include diff --git a/examples/thermostat/genio/src/AppTask.cpp b/examples/thermostat/genio/src/AppTask.cpp index 67daf5d1ffd2bf..2cd1c479f90fcd 100644 --- a/examples/thermostat/genio/src/AppTask.cpp +++ b/examples/thermostat/genio/src/AppTask.cpp @@ -26,10 +26,10 @@ #include #include -#include #include #include #include +#include #include diff --git a/examples/thermostat/qpg/src/AppTask.cpp b/examples/thermostat/qpg/src/AppTask.cpp index 921fc220c6099b..41342e410c88bd 100644 --- a/examples/thermostat/qpg/src/AppTask.cpp +++ b/examples/thermostat/qpg/src/AppTask.cpp @@ -27,10 +27,10 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/MCCommonCaseDeviceServerInitParamsProvider.h b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/MCCommonCaseDeviceServerInitParamsProvider.h index 511c7861c98161..0fec5c7b36e89b 100644 --- a/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/MCCommonCaseDeviceServerInitParamsProvider.h +++ b/examples/tv-casting-app/darwin/MatterTvCastingBridge/MatterTvCastingBridge/MCCommonCaseDeviceServerInitParamsProvider.h @@ -17,7 +17,7 @@ #include "core/Types.h" -#include +#include #ifndef MCCommonCaseDeviceServerInitParamsProvider_h #define MCCommonCaseDeviceServerInitParamsProvider_h diff --git a/examples/tv-casting-app/linux/main.cpp b/examples/tv-casting-app/linux/main.cpp index d73431d1fb97ea..dcdd25dd33f8af 100644 --- a/examples/tv-casting-app/linux/main.cpp +++ b/examples/tv-casting-app/linux/main.cpp @@ -33,11 +33,11 @@ #include "LinuxCommissionableDataProvider.h" #include "Options.h" -#include #include #include #include #include +#include #include using namespace chip; diff --git a/examples/tv-casting-app/linux/simple-app.cpp b/examples/tv-casting-app/linux/simple-app.cpp index c41ebe0fc460a0..5697b269a24473 100644 --- a/examples/tv-casting-app/linux/simple-app.cpp +++ b/examples/tv-casting-app/linux/simple-app.cpp @@ -26,11 +26,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/examples/window-app/nrfconnect/main/AppTask.cpp b/examples/window-app/nrfconnect/main/AppTask.cpp index 06f21e0eaf8109..2cfbab9a6b6c47 100644 --- a/examples/window-app/nrfconnect/main/AppTask.cpp +++ b/examples/window-app/nrfconnect/main/AppTask.cpp @@ -27,12 +27,12 @@ #include #include #include -#include #include #include #include #include #include +#include #if CONFIG_CHIP_OTA_REQUESTOR #include "OTAUtil.h" diff --git a/src/BUILD.gn b/src/BUILD.gn index baf3c69720da9e..8eac76615c63c8 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -89,11 +89,11 @@ if (chip_build_tests) { # Avoid these items from "one single binary" test executions. Once tests # are split, we can re-visit this (and likely many others). # - # In particular: "app/codegen-data-model-provider/tests" contains + # In particular: "data-model-providers/codegen/tests" contains # symbols for ember mocks which are used by other tests. tests += [ - "${chip_root}/src/app/codegen-data-model-provider/tests", + "${chip_root}/src/data-model-providers/codegen/tests", "${chip_root}/src/setup_payload/tests", "${chip_root}/src/transport/raw/tests", ] diff --git a/src/app/chip_data_model.cmake b/src/app/chip_data_model.cmake index 5afb1735e46207..7c5ab0f82608b4 100644 --- a/src/app/chip_data_model.cmake +++ b/src/app/chip_data_model.cmake @@ -17,7 +17,7 @@ set(CHIP_APP_BASE_DIR ${CMAKE_CURRENT_LIST_DIR}) include("${CHIP_ROOT}/build/chip/chip_codegen.cmake") -include("${CHIP_ROOT}/src/app/codegen-data-model-provider/model.cmake") +include("${CHIP_ROOT}/src/data-model-providers/codegen/model.cmake") # Configure ${APP_TARGET} with source files associated with ${CLUSTER} cluster # diff --git a/src/app/chip_data_model.gni b/src/app/chip_data_model.gni index 7d8cfac7f7b0d9..02be8ebaccf05b 100644 --- a/src/app/chip_data_model.gni +++ b/src/app/chip_data_model.gni @@ -15,8 +15,8 @@ import("//build_overrides/build.gni") import("//build_overrides/chip.gni") import("${chip_root}/build/chip/chip_codegen.gni") -import("${chip_root}/src/app/codegen-data-model-provider/model.gni") import("${chip_root}/src/app/common_flags.gni") +import("${chip_root}/src/data-model-providers/codegen/model.gni") import("${chip_root}/src/platform/python.gni") _app_root = get_path_info(".", "abspath") diff --git a/src/app/server/java/AndroidAppServerWrapper.cpp b/src/app/server/java/AndroidAppServerWrapper.cpp index 1c0264eb6af244..15d2d8fa6955e8 100644 --- a/src/app/server/java/AndroidAppServerWrapper.cpp +++ b/src/app/server/java/AndroidAppServerWrapper.cpp @@ -18,11 +18,11 @@ #include "AndroidAppServerWrapper.h" -#include #include #include #include #include +#include #include #include #include diff --git a/src/app/server/java/BUILD.gn b/src/app/server/java/BUILD.gn index 98012409b1ee56..deb85f7da22adc 100644 --- a/src/app/server/java/BUILD.gn +++ b/src/app/server/java/BUILD.gn @@ -36,8 +36,8 @@ static_library("jni") { ] deps = [ - "${chip_root}/src/app/codegen-data-model-provider:instance-header", "${chip_root}/src/app/server", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/inet", "${chip_root}/src/lib", "${chip_root}/src/platform", diff --git a/src/app/tests/BUILD.gn b/src/app/tests/BUILD.gn index 92ba164b7cddf1..912c1e32a0ef5a 100644 --- a/src/app/tests/BUILD.gn +++ b/src/app/tests/BUILD.gn @@ -248,7 +248,6 @@ chip_test_suite("tests") { ":time-sync-data-provider-test-srcs", "${chip_root}/src/app", "${chip_root}/src/app:attribute-persistence", - "${chip_root}/src/app/codegen-data-model-provider:instance-header", "${chip_root}/src/app/common:cluster-objects", "${chip_root}/src/app/data-model-provider/tests:encode-decode", "${chip_root}/src/app/icd/client:handler", @@ -256,6 +255,7 @@ chip_test_suite("tests") { "${chip_root}/src/app/tests:helpers", "${chip_root}/src/app/util/mock:mock_codegen_data_model", "${chip_root}/src/app/util/mock:mock_ember", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/lib/core", "${chip_root}/src/lib/core:string-builder-adapters", "${chip_root}/src/lib/support:test_utils", diff --git a/src/app/tests/TestAclEvent.cpp b/src/app/tests/TestAclEvent.cpp index 4607d48d618ccc..5610d18ed6015c 100644 --- a/src/app/tests/TestAclEvent.cpp +++ b/src/app/tests/TestAclEvent.cpp @@ -24,13 +24,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #include #include #include diff --git a/src/app/tests/TestAttributePathExpandIterator.cpp b/src/app/tests/TestAttributePathExpandIterator.cpp index fb8fa9b2c9621f..913b07e86fb829 100644 --- a/src/app/tests/TestAttributePathExpandIterator.cpp +++ b/src/app/tests/TestAttributePathExpandIterator.cpp @@ -20,8 +20,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/src/app/tests/TestCommissioningWindowManager.cpp b/src/app/tests/TestCommissioningWindowManager.cpp index e6a9069b533e55..7d1e22626b29dd 100644 --- a/src/app/tests/TestCommissioningWindowManager.cpp +++ b/src/app/tests/TestCommissioningWindowManager.cpp @@ -17,11 +17,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/app/tests/TestInteractionModelEngine.cpp b/src/app/tests/TestInteractionModelEngine.cpp index 2778d924abee78..30ca7d0001f01b 100644 --- a/src/app/tests/TestInteractionModelEngine.cpp +++ b/src/app/tests/TestInteractionModelEngine.cpp @@ -18,12 +18,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/src/app/tests/TestReadInteraction.cpp b/src/app/tests/TestReadInteraction.cpp index 564320b67f17ce..21b15d1a808048 100644 --- a/src/app/tests/TestReadInteraction.cpp +++ b/src/app/tests/TestReadInteraction.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -29,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/src/app/tests/TestReportScheduler.cpp b/src/app/tests/TestReportScheduler.cpp index 49cd2ba07230a9..03dda963aef6ba 100644 --- a/src/app/tests/TestReportScheduler.cpp +++ b/src/app/tests/TestReportScheduler.cpp @@ -17,10 +17,10 @@ */ #include -#include #include #include #include +#include #include #include #include diff --git a/src/app/tests/TestReportingEngine.cpp b/src/app/tests/TestReportingEngine.cpp index dc33e30c042a53..60852e2c033c91 100644 --- a/src/app/tests/TestReportingEngine.cpp +++ b/src/app/tests/TestReportingEngine.cpp @@ -28,11 +28,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/app/tests/test-interaction-model-api.cpp b/src/app/tests/test-interaction-model-api.cpp index 71e7d93036005a..1de18681b5a223 100644 --- a/src/app/tests/test-interaction-model-api.cpp +++ b/src/app/tests/test-interaction-model-api.cpp @@ -18,11 +18,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/app/util/mock/BUILD.gn b/src/app/util/mock/BUILD.gn index 0b99d827403047..5147b447f2c72a 100644 --- a/src/app/util/mock/BUILD.gn +++ b/src/app/util/mock/BUILD.gn @@ -14,7 +14,7 @@ import("//build_overrides/chip.gni") -import("${chip_root}/src/app/codegen-data-model-provider/model.gni") +import("${chip_root}/src/data-model-providers/codegen/model.gni") config("mock_include") { include_dirs = [ "include" ] diff --git a/src/controller/java/AndroidDeviceControllerWrapper.cpp b/src/controller/java/AndroidDeviceControllerWrapper.cpp index 704d9bacd29570..d343765747ea77 100644 --- a/src/controller/java/AndroidDeviceControllerWrapper.cpp +++ b/src/controller/java/AndroidDeviceControllerWrapper.cpp @@ -25,12 +25,12 @@ #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/src/controller/java/BUILD.gn b/src/controller/java/BUILD.gn index d969612f375de1..f8eeee3fd7b93b 100644 --- a/src/controller/java/BUILD.gn +++ b/src/controller/java/BUILD.gn @@ -19,8 +19,8 @@ import("${chip_root}/build/chip/buildconfig_header.gni") import("${chip_root}/build/chip/java/config.gni") import("${chip_root}/build/chip/java/rules.gni") import("${chip_root}/build/chip/tests.gni") -import("${chip_root}/src/app/codegen-data-model-provider/model.gni") import("${chip_root}/src/app/common_flags.gni") +import("${chip_root}/src/data-model-providers/codegen/model.gni") import("${chip_root}/src/platform/device.gni") buildconfig_header("controller_buildconfig") { diff --git a/src/controller/python/ChipDeviceController-ScriptBinding.cpp b/src/controller/python/ChipDeviceController-ScriptBinding.cpp index 6430776a6e8b0d..f4c469fbef33af 100644 --- a/src/controller/python/ChipDeviceController-ScriptBinding.cpp +++ b/src/controller/python/ChipDeviceController-ScriptBinding.cpp @@ -42,7 +42,6 @@ #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/src/controller/python/chip/internal/CommissionerImpl.cpp b/src/controller/python/chip/internal/CommissionerImpl.cpp index b86dad3f916084..8cf94f2c968a7f 100644 --- a/src/controller/python/chip/internal/CommissionerImpl.cpp +++ b/src/controller/python/chip/internal/CommissionerImpl.cpp @@ -16,7 +16,6 @@ */ #include -#include #include #include #include @@ -27,6 +26,7 @@ #include #include #include +#include #include #include #include diff --git a/src/controller/python/chip/server/ServerInit.cpp b/src/controller/python/chip/server/ServerInit.cpp index 9089237aa41c7e..ca1efee777b629 100644 --- a/src/controller/python/chip/server/ServerInit.cpp +++ b/src/controller/python/chip/server/ServerInit.cpp @@ -18,9 +18,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/src/controller/tests/TestEventChunking.cpp b/src/controller/tests/TestEventChunking.cpp index 8fa260da41c712..80cd0707b63dfd 100644 --- a/src/controller/tests/TestEventChunking.cpp +++ b/src/controller/tests/TestEventChunking.cpp @@ -30,12 +30,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/src/controller/tests/TestReadChunking.cpp b/src/controller/tests/TestReadChunking.cpp index d05c1fe522c42d..3d2676e7f4c440 100644 --- a/src/controller/tests/TestReadChunking.cpp +++ b/src/controller/tests/TestReadChunking.cpp @@ -25,7 +25,7 @@ #include "app-common/zap-generated/ids/Attributes.h" #include "app-common/zap-generated/ids/Clusters.h" #include "app/ConcreteAttributePath.h" -#include "app/codegen-data-model-provider/Instance.h" +#include "data-model-providers/codegen/Instance.h" #include "protocols/interaction_model/Constants.h" #include #include diff --git a/src/controller/tests/TestServerCommandDispatch.cpp b/src/controller/tests/TestServerCommandDispatch.cpp index a09d2537f377bf..2389ce08e6baf2 100644 --- a/src/controller/tests/TestServerCommandDispatch.cpp +++ b/src/controller/tests/TestServerCommandDispatch.cpp @@ -23,12 +23,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include #include diff --git a/src/controller/tests/TestWriteChunking.cpp b/src/controller/tests/TestWriteChunking.cpp index 39c73c7e7b28aa..ba96f53548cf25 100644 --- a/src/controller/tests/TestWriteChunking.cpp +++ b/src/controller/tests/TestWriteChunking.cpp @@ -30,12 +30,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/src/controller/tests/data_model/DataModelFixtures.cpp b/src/controller/tests/data_model/DataModelFixtures.cpp index c0054043fe4bbf..6cb4f114c3d1ef 100644 --- a/src/controller/tests/data_model/DataModelFixtures.cpp +++ b/src/controller/tests/data_model/DataModelFixtures.cpp @@ -26,8 +26,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm b/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm index e0c5f8283aa189..f4e968a72cf268 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm @@ -50,7 +50,6 @@ #import -#include #include #include #include @@ -59,6 +58,7 @@ #include #include #include +#include #include #include #include diff --git a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj index f934f91dfbccb7..1de3c69f2f1417 100644 --- a/src/darwin/Framework/Matter.xcodeproj/project.pbxproj +++ b/src/darwin/Framework/Matter.xcodeproj/project.pbxproj @@ -757,10 +757,10 @@ 75139A6C2B7FE19100E3A919 /* MTRTestDeclarations.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRTestDeclarations.h; sourceTree = ""; }; 75139A6D2B7FE5D600E3A919 /* MTRDeviceControllerLocalTestStorage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceControllerLocalTestStorage.h; sourceTree = ""; }; 75139A6E2B7FE5E900E3A919 /* MTRDeviceControllerLocalTestStorage.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceControllerLocalTestStorage.mm; sourceTree = ""; }; - 7534D1762CF8CDDF00F64654 /* AttributePersistenceProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AttributePersistenceProvider.h; path = ../../app/util/persistence/AttributePersistenceProvider.h; sourceTree = ""; }; - 7534D1772CF8CDDF00F64654 /* AttributePersistenceProvider.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = AttributePersistenceProvider.cpp; path = ../../app/util/persistence/AttributePersistenceProvider.cpp; sourceTree = ""; }; - 7534D17C2CF8CE2000F64654 /* DefaultAttributePersistenceProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = DefaultAttributePersistenceProvider.h; path = ../../app/util/persistence/DefaultAttributePersistenceProvider.h; sourceTree = ""; }; - 7534D17D2CF8CE2000F64654 /* DefaultAttributePersistenceProvider.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = DefaultAttributePersistenceProvider.cpp; path = ../../app/util/persistence/DefaultAttributePersistenceProvider.cpp; sourceTree = ""; }; + 7534D1762CF8CDDF00F64654 /* AttributePersistenceProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AttributePersistenceProvider.h; sourceTree = ""; }; + 7534D1772CF8CDDF00F64654 /* AttributePersistenceProvider.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AttributePersistenceProvider.cpp; sourceTree = ""; }; + 7534D17C2CF8CE2000F64654 /* DefaultAttributePersistenceProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DefaultAttributePersistenceProvider.h; sourceTree = ""; }; + 7534D17D2CF8CE2000F64654 /* DefaultAttributePersistenceProvider.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = DefaultAttributePersistenceProvider.cpp; sourceTree = ""; }; 7534F12628BFF20300390851 /* MTRDeviceAttestationDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MTRDeviceAttestationDelegate.mm; sourceTree = ""; }; 7534F12728BFF20300390851 /* MTRDeviceAttestationDelegate_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MTRDeviceAttestationDelegate_Internal.h; sourceTree = ""; }; 754784632BFE65B70089C372 /* MTRDeviceStorageBehaviorConfiguration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MTRDeviceStorageBehaviorConfiguration.h; sourceTree = ""; }; @@ -1359,7 +1359,8 @@ 7592BCF12CBEE98C00EB74A0 /* Instance.h */, 7592BCF22CBEE98C00EB74A0 /* Instance.cpp */, ); - path = "codegen-data-model-provider"; + name = "codegen-data-model-provider"; + path = "../data-model-providers/codegen"; sourceTree = ""; }; 7534D1822CF8CE2C00F64654 /* persistence */ = { @@ -1370,7 +1371,8 @@ 7534D1762CF8CDDF00F64654 /* AttributePersistenceProvider.h */, 7534D1772CF8CDDF00F64654 /* AttributePersistenceProvider.cpp */, ); - path = persistence; + name = persistence; + path = util/persistence; sourceTree = ""; }; 75A202E72BA8DBB700A771DD /* reporting */ = { diff --git a/src/app/codegen-data-model-provider/BUILD.gn b/src/data-model-providers/codegen/BUILD.gn similarity index 100% rename from src/app/codegen-data-model-provider/BUILD.gn rename to src/data-model-providers/codegen/BUILD.gn diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp b/src/data-model-providers/codegen/CodegenDataModelProvider.cpp similarity index 99% rename from src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp rename to src/data-model-providers/codegen/CodegenDataModelProvider.cpp index a353cd1c5d4c55..95bac8fbbf82f3 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp +++ b/src/data-model-providers/codegen/CodegenDataModelProvider.cpp @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include +#include #include #include diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider.h b/src/data-model-providers/codegen/CodegenDataModelProvider.h similarity index 100% rename from src/app/codegen-data-model-provider/CodegenDataModelProvider.h rename to src/data-model-providers/codegen/CodegenDataModelProvider.h diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp b/src/data-model-providers/codegen/CodegenDataModelProvider_Read.cpp similarity index 96% rename from src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp rename to src/data-model-providers/codegen/CodegenDataModelProvider_Read.cpp index 88989b52071810..2c2ed3102e8850 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp +++ b/src/data-model-providers/codegen/CodegenDataModelProvider_Read.cpp @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include +#include #include #include @@ -28,8 +28,6 @@ #include #include #include -#include -#include #include #include #include @@ -40,6 +38,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp b/src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp similarity index 98% rename from src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp rename to src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp index 10e03ae4844487..1eb25f122d3b36 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp +++ b/src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp @@ -14,15 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include +#include #include #include #include #include #include -#include -#include #include #include #include @@ -35,6 +33,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/app/codegen-data-model-provider/EmberAttributeDataBuffer.cpp b/src/data-model-providers/codegen/EmberAttributeDataBuffer.cpp similarity index 99% rename from src/app/codegen-data-model-provider/EmberAttributeDataBuffer.cpp rename to src/data-model-providers/codegen/EmberAttributeDataBuffer.cpp index 1296e7190833fd..84ad9de070ff2d 100644 --- a/src/app/codegen-data-model-provider/EmberAttributeDataBuffer.cpp +++ b/src/data-model-providers/codegen/EmberAttributeDataBuffer.cpp @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include +#include #include #include diff --git a/src/app/codegen-data-model-provider/EmberAttributeDataBuffer.h b/src/data-model-providers/codegen/EmberAttributeDataBuffer.h similarity index 100% rename from src/app/codegen-data-model-provider/EmberAttributeDataBuffer.h rename to src/data-model-providers/codegen/EmberAttributeDataBuffer.h diff --git a/src/app/codegen-data-model-provider/EmberMetadata.cpp b/src/data-model-providers/codegen/EmberMetadata.cpp similarity index 97% rename from src/app/codegen-data-model-provider/EmberMetadata.cpp rename to src/data-model-providers/codegen/EmberMetadata.cpp index 69f9e3e889369c..22e31a569fe702 100644 --- a/src/app/codegen-data-model-provider/EmberMetadata.cpp +++ b/src/data-model-providers/codegen/EmberMetadata.cpp @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include +#include #include #include diff --git a/src/app/codegen-data-model-provider/EmberMetadata.h b/src/data-model-providers/codegen/EmberMetadata.h similarity index 100% rename from src/app/codegen-data-model-provider/EmberMetadata.h rename to src/data-model-providers/codegen/EmberMetadata.h diff --git a/src/app/codegen-data-model-provider/Instance.cpp b/src/data-model-providers/codegen/Instance.cpp similarity index 89% rename from src/app/codegen-data-model-provider/Instance.cpp rename to src/data-model-providers/codegen/Instance.cpp index 3321106dd90ade..bcf52f2b8821e2 100644 --- a/src/app/codegen-data-model-provider/Instance.cpp +++ b/src/data-model-providers/codegen/Instance.cpp @@ -15,8 +15,8 @@ * limitations under the License. */ #include "lib/core/CHIPPersistentStorageDelegate.h" -#include -#include +#include +#include namespace chip { namespace app { diff --git a/src/app/codegen-data-model-provider/Instance.h b/src/data-model-providers/codegen/Instance.h similarity index 100% rename from src/app/codegen-data-model-provider/Instance.h rename to src/data-model-providers/codegen/Instance.h diff --git a/src/app/codegen-data-model-provider/model.cmake b/src/data-model-providers/codegen/model.cmake similarity index 100% rename from src/app/codegen-data-model-provider/model.cmake rename to src/data-model-providers/codegen/model.cmake diff --git a/src/app/codegen-data-model-provider/model.gni b/src/data-model-providers/codegen/model.gni similarity index 64% rename from src/app/codegen-data-model-provider/model.gni rename to src/data-model-providers/codegen/model.gni index 12c2711fdadf7f..51305a5fe30b5a 100644 --- a/src/app/codegen-data-model-provider/model.gni +++ b/src/data-model-providers/codegen/model.gni @@ -25,20 +25,20 @@ import("//build_overrides/chip.gni") # be cleanly built as a stand-alone and instead have to be imported as part of # a different data model or compilation unit. codegen_data_model_SOURCES = [ - "${chip_root}/src/app/codegen-data-model-provider/CodegenDataModelProvider.cpp", - "${chip_root}/src/app/codegen-data-model-provider/CodegenDataModelProvider.h", - "${chip_root}/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp", - "${chip_root}/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp", - "${chip_root}/src/app/codegen-data-model-provider/EmberAttributeDataBuffer.cpp", - "${chip_root}/src/app/codegen-data-model-provider/EmberAttributeDataBuffer.h", - "${chip_root}/src/app/codegen-data-model-provider/EmberMetadata.cpp", - "${chip_root}/src/app/codegen-data-model-provider/EmberMetadata.h", - "${chip_root}/src/app/codegen-data-model-provider/Instance.cpp", + "${chip_root}/src/data-model-providers/codegen/CodegenDataModelProvider.cpp", + "${chip_root}/src/data-model-providers/codegen/CodegenDataModelProvider.h", + "${chip_root}/src/data-model-providers/codegen/CodegenDataModelProvider_Read.cpp", + "${chip_root}/src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp", + "${chip_root}/src/data-model-providers/codegen/EmberAttributeDataBuffer.cpp", + "${chip_root}/src/data-model-providers/codegen/EmberAttributeDataBuffer.h", + "${chip_root}/src/data-model-providers/codegen/EmberMetadata.cpp", + "${chip_root}/src/data-model-providers/codegen/EmberMetadata.h", + "${chip_root}/src/data-model-providers/codegen/Instance.cpp", ] codegen_data_model_PUBLIC_DEPS = [ "${chip_root}/src/app/common:attribute-type", "${chip_root}/src/app/data-model-provider", - "${chip_root}/src/app/codegen-data-model-provider:instance-header", + "${chip_root}/src/data-model-providers/codegen:instance-header", "${chip_root}/src/app/util/persistence", ] diff --git a/src/app/codegen-data-model-provider/tests/BUILD.gn b/src/data-model-providers/codegen/tests/BUILD.gn similarity index 96% rename from src/app/codegen-data-model-provider/tests/BUILD.gn rename to src/data-model-providers/codegen/tests/BUILD.gn index 5bcfb9d911ab55..af14185ddbd9b1 100644 --- a/src/app/codegen-data-model-provider/tests/BUILD.gn +++ b/src/data-model-providers/codegen/tests/BUILD.gn @@ -13,7 +13,7 @@ # limitations under the License. import("//build_overrides/chip.gni") import("${chip_root}/build/chip/chip_test_suite.gni") -import("${chip_root}/src/app/codegen-data-model-provider/model.gni") +import("${chip_root}/src/data-model-providers/codegen/model.gni") source_set("ember_extra_files") { sources = [ diff --git a/src/app/codegen-data-model-provider/tests/EmberInvokeOverride.cpp b/src/data-model-providers/codegen/tests/EmberInvokeOverride.cpp similarity index 100% rename from src/app/codegen-data-model-provider/tests/EmberInvokeOverride.cpp rename to src/data-model-providers/codegen/tests/EmberInvokeOverride.cpp diff --git a/src/app/codegen-data-model-provider/tests/EmberInvokeOverride.h b/src/data-model-providers/codegen/tests/EmberInvokeOverride.h similarity index 100% rename from src/app/codegen-data-model-provider/tests/EmberInvokeOverride.h rename to src/data-model-providers/codegen/tests/EmberInvokeOverride.h diff --git a/src/app/codegen-data-model-provider/tests/EmberReadWriteOverride.cpp b/src/data-model-providers/codegen/tests/EmberReadWriteOverride.cpp similarity index 100% rename from src/app/codegen-data-model-provider/tests/EmberReadWriteOverride.cpp rename to src/data-model-providers/codegen/tests/EmberReadWriteOverride.cpp diff --git a/src/app/codegen-data-model-provider/tests/EmberReadWriteOverride.h b/src/data-model-providers/codegen/tests/EmberReadWriteOverride.h similarity index 100% rename from src/app/codegen-data-model-provider/tests/EmberReadWriteOverride.h rename to src/data-model-providers/codegen/tests/EmberReadWriteOverride.h diff --git a/src/app/codegen-data-model-provider/tests/InteractionModelTemporaryOverrides.cpp b/src/data-model-providers/codegen/tests/InteractionModelTemporaryOverrides.cpp similarity index 100% rename from src/app/codegen-data-model-provider/tests/InteractionModelTemporaryOverrides.cpp rename to src/data-model-providers/codegen/tests/InteractionModelTemporaryOverrides.cpp diff --git a/src/app/codegen-data-model-provider/tests/TestCodegenModelViaMocks.cpp b/src/data-model-providers/codegen/tests/TestCodegenModelViaMocks.cpp similarity index 99% rename from src/app/codegen-data-model-provider/tests/TestCodegenModelViaMocks.cpp rename to src/data-model-providers/codegen/tests/TestCodegenModelViaMocks.cpp index 5f47f1abda0498..302d26a8941cd0 100644 --- a/src/app/codegen-data-model-provider/tests/TestCodegenModelViaMocks.cpp +++ b/src/data-model-providers/codegen/tests/TestCodegenModelViaMocks.cpp @@ -17,8 +17,8 @@ #include -#include -#include +#include +#include #include #include @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include #include diff --git a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp b/src/data-model-providers/codegen/tests/TestEmberAttributeDataBuffer.cpp similarity index 99% rename from src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp rename to src/data-model-providers/codegen/tests/TestEmberAttributeDataBuffer.cpp index 04e8b94dcce809..e33c5b6e74c5e5 100644 --- a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp +++ b/src/data-model-providers/codegen/tests/TestEmberAttributeDataBuffer.cpp @@ -18,7 +18,7 @@ #include -#include +#include #include #include