Skip to content

Commit

Permalink
Add missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mspang committed Aug 16, 2022
1 parent 08f0983 commit 15cdaee
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 19 deletions.
1 change: 1 addition & 0 deletions examples/chip-tool/commands/clusters/CustomArgument.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <app-common/zap-generated/cluster-objects.h>
#include <lib/support/CHIPMemString.h>
#include <lib/support/SafeInt.h>
#include <lib/support/BytesToHex.h>

#include "JsonParser.h"

Expand Down
7 changes: 4 additions & 3 deletions examples/chip-tool/commands/discover/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <lib/address_resolve/AddressResolve.h>

class Resolve : public DiscoverCommand, public chip::AddressResolve::NodeListener
Expand Down
7 changes: 4 additions & 3 deletions examples/chip-tool/commands/group/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

#pragma once

#include "../common/CHIPCommand.h"
#include "../common/Command.h"

#include <lib/support/Span.h>

#include "commands/common/CHIPCommand.h"
#include "commands/common/Command.h"
#include "commands/common/Commands.h"

class ShowControllerGroups : public CHIPCommand
{
public:
Expand Down
7 changes: 3 additions & 4 deletions examples/chip-tool/commands/interactive/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
9 changes: 5 additions & 4 deletions examples/chip-tool/commands/pairing/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <app/server/Dnssd.h>
#include <commands/common/CredentialIssuerCommands.h>
Expand Down
9 changes: 5 additions & 4 deletions examples/chip-tool/commands/payload/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
5 changes: 5 additions & 0 deletions examples/chip-tool/templates/ComplexArgumentParser.zapt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{> header}}

#include <json/json.h>

#include <lib/core/CHIPError.h"
#include <app-common/zap-generated/cluster-objects.h>

{{#structs_with_cluster_name}}
static CHIP_ERROR Setup(const char * label, {{zapTypeToEncodableClusterObjectType name ns=clusterName}} & request, Json::Value & value);

Expand Down
3 changes: 3 additions & 0 deletions examples/chip-tool/templates/logging/DataModelLogger.zapt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{> header}}

#include <lib/core/CHIPError.h>
#include <app-common/zap-generated/cluster-objects.h>

{{#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}}
Expand Down
1 change: 1 addition & 0 deletions examples/chip-tool/templates/tests/commands.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#if CONFIG_ENABLE_YAML_TESTS

#include <commands/tests/TestCommand.h>
#include <commands/common/Commands.h>
#include <lib/core/Optional.h>
#include <lib/support/CHIPListUtils.h>
#include <system/SystemClock.h>
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/include/PICSChecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <app/tests/suites/pics/PICSBooleanExpressionParser.h>
#include <app/tests/suites/pics/PICSBooleanReader.h>

#include <lib/core/Optional.h>
#include <lib/support/logging/CHIPLogging.h>

class PICSChecker
Expand Down
4 changes: 4 additions & 0 deletions src/app/tests/suites/include/TestRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

#pragma once

#include <string>

#include <lib/support/UnitTestUtils.h>
#include <lib/core/Optional.h>
#include <lib/core/CHIPError.h>

class TestRunner
{
Expand Down
1 change: 1 addition & 0 deletions src/lib/dnssd/minimal_mdns/ResponseBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <lib/dnssd/minimal_mdns/core/DnsHeader.h>
#include <lib/dnssd/minimal_mdns/records/ResourceRecord.h>
#include <lib/dnssd/minimal_mdns/Parser.h>

namespace mdns {
namespace Minimal {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15cdaee

Please sign in to comment.