Skip to content

Commit

Permalink
Do not use gen_config.h directly. (#31401)
Browse files Browse the repository at this point in the history
* Do not use gen_config.h directly.

Apparently the right file is config.h, which includes the gen file.

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 26, 2024
1 parent f3e80dd commit 79b0e92
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <app/clusters/temperature-control-server/supported-temperature-levels-manager.h>
#include <app/util/af.h>
#include <zap-generated/gen_config.h>
#include <app/util/config.h>

namespace chip {
namespace app {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#include <app/util/config.h>
#include <static-supported-temperature-levels.h>
#include <zap-generated/gen_config.h>

using namespace std;
using namespace chip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <app/util/config.h>
#include <static-supported-temperature-levels.h>
#include <zap-generated/gen_config.h>

using namespace std;
using namespace chip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <app/clusters/temperature-control-server/supported-temperature-levels-manager.h>
#include <app/util/af.h>
#include <zap-generated/gen_config.h>
#include <app/util/config.h>

namespace chip {
namespace app {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#include <app/util/config.h>
#include <static-supported-temperature-levels.h>
#include <zap-generated/gen_config.h>

using namespace std;
using namespace chip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "general-diagnostics-server.h"

#include <zap-generated/gen_config.h>
#include <app/util/config.h>

#ifdef ZCL_USING_TIME_SYNCHRONIZATION_CLUSTER_SERVER
// Need the `nogncheck` because it's inter-cluster dependency and this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#include <app-common/zap-generated/ids/Attributes.h>
#include <app/util/af.h>
#include <app/util/attribute-storage.h>
#include <app/util/config.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/logging/CHIPLogging.h>
#include <zap-generated/gen_config.h>

using namespace chip;
using namespace app;
Expand Down
2 changes: 1 addition & 1 deletion src/app/clusters/scenes-server/SceneTableImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include <app/clusters/scenes-server/SceneHandlerImpl.h>
#include <app/clusters/scenes-server/SceneTable.h>
#include <app/util/attribute-storage.h>
#include <app/util/config.h>
#include <lib/core/DataModelTypes.h>
#include <lib/support/CommonIterator.h>
#include <lib/support/PersistentData.h>
#include <lib/support/Pool.h>
#include <zap-generated/gen_config.h>

namespace chip {
namespace scenes {
Expand Down

0 comments on commit 79b0e92

Please sign in to comment.