commit | 5ce992d1f314cd5a4a0fc6a2050d842413a76a58 | [log] [tgz] |
---|---|---|
author | Andrei Litvin <andy314@gmail.com> | Fri Apr 26 14:28:09 2024 -0400 |
committer | GitHub <noreply@github.com> | Fri Apr 26 18:28:09 2024 +0000 |
tree | 0dabac3535737616b17be59be831d07a61c131e8 | |
parent | f141aebe1c76724b04c6be82bfea504f274204b3 [diff] |
Include what you use for some chef files (#33197) * Some include-what-you-use for stl things in chef * Restyle --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
diff --git a/examples/chef/common/clusters/door-lock/chef-lock-manager.cpp b/examples/chef/common/clusters/door-lock/chef-lock-manager.cpp index b6c3f7a..2450597 100644 --- a/examples/chef/common/clusters/door-lock/chef-lock-manager.cpp +++ b/examples/chef/common/clusters/door-lock/chef-lock-manager.cpp
@@ -15,12 +15,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include <iostream> #include <lib/support/logging/CHIPLogging.h> #ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER #include "chef-lock-manager.h" +#include <algorithm> +#include <iostream> + using chip::to_underlying; LockManager LockManager::instance;
diff --git a/examples/chef/common/clusters/door-lock/chef-lock-manager.h b/examples/chef/common/clusters/door-lock/chef-lock-manager.h index f941620..b8fb409 100644 --- a/examples/chef/common/clusters/door-lock/chef-lock-manager.h +++ b/examples/chef/common/clusters/door-lock/chef-lock-manager.h
@@ -20,7 +20,9 @@ #include "chef-lock-endpoint.h" #include <app/clusters/door-lock-server/door-lock-server.h> + #include <cstdint> +#include <vector> class LockManager {
diff --git a/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h b/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h index e952808..56382fe 100644 --- a/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h +++ b/examples/chef/common/clusters/target-navigator/TargetNavigatorManager.h
@@ -19,6 +19,7 @@ #include <app/clusters/target-navigator-server/target-navigator-server.h> +#include <list> #include <string> class TargetNavigatorManager : public chip::app::Clusters::TargetNavigator::Delegate
diff --git a/examples/chef/esp32/main/QRCodeScreen.cpp b/examples/chef/esp32/main/QRCodeScreen.cpp index ac39b94..0b43664 100644 --- a/examples/chef/esp32/main/QRCodeScreen.cpp +++ b/examples/chef/esp32/main/QRCodeScreen.cpp
@@ -43,6 +43,7 @@ #include <setup_payload/QRCodeSetupPayloadGenerator.h> #include <string> +#include <vector> // TODO need sensible library tag when put in library extern const char TAG[];