From 15cdaee97d283bca4854d2451786982cb943c3c1 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Tue, 16 Aug 2022 03:45:30 -0400 Subject: [PATCH] Add missing includes --- examples/chip-tool/commands/clusters/CustomArgument.h | 1 + examples/chip-tool/commands/discover/Commands.h | 7 ++++--- examples/chip-tool/commands/group/Commands.h | 7 ++++--- examples/chip-tool/commands/interactive/Commands.h | 7 +++---- examples/chip-tool/commands/pairing/Commands.h | 9 +++++---- examples/chip-tool/commands/payload/Commands.h | 9 +++++---- examples/chip-tool/templates/ComplexArgumentParser.zapt | 5 +++++ .../chip-tool/templates/logging/DataModelLogger.zapt | 3 +++ examples/chip-tool/templates/tests/commands.zapt | 1 + src/app/tests/suites/include/PICSChecker.h | 2 +- src/app/tests/suites/include/TestRunner.h | 4 ++++ src/lib/dnssd/minimal_mdns/ResponseBuilder.h | 1 + .../zap-generated/cluster/ComplexArgumentParser.h | 5 +++++ .../zap-generated/cluster/logging/DataModelLogger.h | 3 +++ zzz_generated/chip-tool/zap-generated/test/Commands.h | 1 + 15 files changed, 46 insertions(+), 19 deletions(-) diff --git a/examples/chip-tool/commands/clusters/CustomArgument.h b/examples/chip-tool/commands/clusters/CustomArgument.h index 6755703fa0b7d5..f5d3618e6021d5 100644 --- a/examples/chip-tool/commands/clusters/CustomArgument.h +++ b/examples/chip-tool/commands/clusters/CustomArgument.h @@ -21,6 +21,7 @@ #include #include #include +#include #include "JsonParser.h" diff --git a/examples/chip-tool/commands/discover/Commands.h b/examples/chip-tool/commands/discover/Commands.h index f7a41183bedf56..484f540f8f5d5d 100644 --- a/examples/chip-tool/commands/discover/Commands.h +++ b/examples/chip-tool/commands/discover/Commands.h @@ -18,9 +18,10 @@ #pragma once -#include "DiscoverCommand.h" -#include "DiscoverCommissionablesCommand.h" -#include "DiscoverCommissionersCommand.h" +#include "commands/discover/DiscoverCommand.h" +#include "commands/discover/DiscoverCommissionablesCommand.h" +#include "commands/discover/DiscoverCommissionersCommand.h" +#include "commands/common/Commands.h" #include class Resolve : public DiscoverCommand, public chip::AddressResolve::NodeListener diff --git a/examples/chip-tool/commands/group/Commands.h b/examples/chip-tool/commands/group/Commands.h index 6aa59c581fdd80..e60ba6853fda85 100644 --- a/examples/chip-tool/commands/group/Commands.h +++ b/examples/chip-tool/commands/group/Commands.h @@ -18,11 +18,12 @@ #pragma once -#include "../common/CHIPCommand.h" -#include "../common/Command.h" - #include +#include "commands/common/CHIPCommand.h" +#include "commands/common/Command.h" +#include "commands/common/Commands.h" + class ShowControllerGroups : public CHIPCommand { public: diff --git a/examples/chip-tool/commands/interactive/Commands.h b/examples/chip-tool/commands/interactive/Commands.h index 19feb20f163999..04249045c9caef 100644 --- a/examples/chip-tool/commands/interactive/Commands.h +++ b/examples/chip-tool/commands/interactive/Commands.h @@ -18,10 +18,9 @@ #pragma once -#include "../common/CHIPCommand.h" -#include "../common/Commands.h" - -#include "InteractiveCommands.h" +#include "commands/common/CHIPCommand.h" +#include "commands/common/Commands.h" +#include "commands/interactive/InteractiveCommands.h" void registerCommandsInteractive(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { diff --git a/examples/chip-tool/commands/pairing/Commands.h b/examples/chip-tool/commands/pairing/Commands.h index 80506e6df0e9e0..4841d0c0e0f03c 100644 --- a/examples/chip-tool/commands/pairing/Commands.h +++ b/examples/chip-tool/commands/pairing/Commands.h @@ -18,10 +18,11 @@ #pragma once -#include "CloseSessionCommand.h" -#include "CommissionedListCommand.h" -#include "OpenCommissioningWindowCommand.h" -#include "PairingCommand.h" +#include "commands/common/Commands.h" +#include "commands/pairing/CloseSessionCommand.h" +#include "commands/pairing/CommissionedListCommand.h" +#include "commands/pairing/OpenCommissioningWindowCommand.h" +#include "commands/pairing/PairingCommand.h" #include #include diff --git a/examples/chip-tool/commands/payload/Commands.h b/examples/chip-tool/commands/payload/Commands.h index 1b5eb2c7c5c62a..0cc5cae0a0879c 100644 --- a/examples/chip-tool/commands/payload/Commands.h +++ b/examples/chip-tool/commands/payload/Commands.h @@ -18,10 +18,11 @@ #pragma once -#include "AdditionalDataParseCommand.h" -#include "SetupPayloadGenerateCommand.h" -#include "SetupPayloadParseCommand.h" -#include "SetupPayloadVerhoeff.h" +#include "commands/common/Commands.h" +#include "commands/payload/AdditionalDataParseCommand.h" +#include "commands/payload/SetupPayloadGenerateCommand.h" +#include "commands/payload/SetupPayloadParseCommand.h" +#include "commands/payload/SetupPayloadVerhoeff.h" void registerCommandsPayload(Commands & commands) { diff --git a/examples/chip-tool/templates/ComplexArgumentParser.zapt b/examples/chip-tool/templates/ComplexArgumentParser.zapt index 9597dc57fcbdab..fe9b3bb4ff4c2c 100644 --- a/examples/chip-tool/templates/ComplexArgumentParser.zapt +++ b/examples/chip-tool/templates/ComplexArgumentParser.zapt @@ -1,5 +1,10 @@ {{> header}} +#include + +#include + {{#structs_with_cluster_name}} static CHIP_ERROR Setup(const char * label, {{zapTypeToEncodableClusterObjectType name ns=clusterName}} & request, Json::Value & value); diff --git a/examples/chip-tool/templates/logging/DataModelLogger.zapt b/examples/chip-tool/templates/logging/DataModelLogger.zapt index 69550b9bdf12b1..468f26619d689d 100644 --- a/examples/chip-tool/templates/logging/DataModelLogger.zapt +++ b/examples/chip-tool/templates/logging/DataModelLogger.zapt @@ -1,5 +1,8 @@ {{> header}} +#include +#include + {{#structs_with_cluster_name}} static CHIP_ERROR LogValue(const char * label, size_t indent, {{zapTypeToDecodableClusterObjectType name ns=clusterName isArgument=true}} value); {{/structs_with_cluster_name}} diff --git a/examples/chip-tool/templates/tests/commands.zapt b/examples/chip-tool/templates/tests/commands.zapt index b960267359fa0d..64b9b349372e76 100644 --- a/examples/chip-tool/templates/tests/commands.zapt +++ b/examples/chip-tool/templates/tests/commands.zapt @@ -5,6 +5,7 @@ #if CONFIG_ENABLE_YAML_TESTS #include +#include #include #include #include diff --git a/src/app/tests/suites/include/PICSChecker.h b/src/app/tests/suites/include/PICSChecker.h index 28c07af5a94482..e7c7b7deb9fd11 100644 --- a/src/app/tests/suites/include/PICSChecker.h +++ b/src/app/tests/suites/include/PICSChecker.h @@ -22,7 +22,7 @@ #include #include - +#include #include class PICSChecker diff --git a/src/app/tests/suites/include/TestRunner.h b/src/app/tests/suites/include/TestRunner.h index 3bdea10f29d7ab..bbf64f2daeaefb 100644 --- a/src/app/tests/suites/include/TestRunner.h +++ b/src/app/tests/suites/include/TestRunner.h @@ -18,7 +18,11 @@ #pragma once +#include + #include +#include +#include class TestRunner { diff --git a/src/lib/dnssd/minimal_mdns/ResponseBuilder.h b/src/lib/dnssd/minimal_mdns/ResponseBuilder.h index 6391d185f8f9e9..8765f2872176a3 100644 --- a/src/lib/dnssd/minimal_mdns/ResponseBuilder.h +++ b/src/lib/dnssd/minimal_mdns/ResponseBuilder.h @@ -21,6 +21,7 @@ #include #include +#include namespace mdns { namespace Minimal { diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h index f0aad84c4ec221..5a7f0d2310e84e 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h @@ -17,6 +17,11 @@ // THIS FILE IS GENERATED BY ZAP +#include + +#include +#include +#include + static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::AccessControl::Structs::AccessControlEntry::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 688f40adc364a3..d7ef2c038344a4 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -21,6 +21,7 @@ #if CONFIG_ENABLE_YAML_TESTS +#include #include #include #include