Skip to content

Commit

Permalink
Add pragma once to some headers (#9961)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Oct 18, 2021
1 parent 4269c63 commit 1270663
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*server implementation of the Application Launcher cluster.
*******************************************************************************
******************************************************************************/

#pragma once

struct ApplicationLauncherResponse
{
uint8_t status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*******************************************************************************
******************************************************************************/

#pragma once

#include <stdint.h>

enum MediaPlaybackRequest : uint8_t
Expand Down
2 changes: 2 additions & 0 deletions src/app/clusters/power-source-server/power-source-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*******************************************************************************
******************************************************************************/

#pragma once

struct TargetNavigatorResponse
{
uint8_t status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
* limitations under the License.
*/

#pragma once

/**
* @file
* @brief Definitions for the ZLL Level Control Server plugin.
Expand Down
2 changes: 2 additions & 0 deletions src/app/clusters/zll-on-off-server/zll-on-off-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
* limitations under the License.
*/

#pragma once

/**
* @file
* @brief Definitions for the ZLL On Off Server plugin.
Expand Down
2 changes: 2 additions & 0 deletions src/app/clusters/zll-scenes-server/zll-scenes-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
* limitations under the License.
*/

#pragma once

/**
* @file
* @brief Definitions for the ZLL Scenes Server plugin.
Expand Down
2 changes: 2 additions & 0 deletions src/controller/java/StackLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#pragma once

#include <pthread.h>

/** A scoped lock/unlock around a mutex. */
Expand Down
2 changes: 2 additions & 0 deletions src/include/platform/GeneralUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* General utility functions available on all platforms.
*/

#pragma once

#include <inet/Inet.h>

namespace chip {
Expand Down
3 changes: 3 additions & 0 deletions src/lib/mdns/Advertiser_ImplMinimalMdnsAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include <inttypes.h>

#include <lib/core/CHIPError.h>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/mdns/AllInterfacesListenIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#pragma once

#include <stdio.h>

#include <lib/mdns/minimal/Server.h>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/support/Defer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

#pragma once

#include <utility>

template <typename Function>
Expand Down
2 changes: 2 additions & 0 deletions src/platform/Darwin/CHIPP256KeypairNativeBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* limitations under the License.
*/

#pragma once

#include <crypto/CHIPCryptoPAL.h>

namespace chip {
Expand Down
2 changes: 2 additions & 0 deletions src/platform/Darwin/MdnsError.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#pragma once

#include "MdnsImpl.h"

namespace chip {
Expand Down
3 changes: 3 additions & 0 deletions src/platform/fake/MdnsImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include "lib/mdns/platform/Mdns.h"
#include <lib/support/CHIPMemString.h>

Expand Down
2 changes: 2 additions & 0 deletions src/setup_payload/ManualSetupPayloadParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* CHIP specification.
*/

#pragma once

#include "SetupPayload.h"

#include <lib/core/CHIPError.h>
Expand Down
2 changes: 2 additions & 0 deletions src/setup_payload/QRCodeSetupPayloadParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* CHIP specification.
*/

#pragma once

#include "SetupPayload.h"

#include <lib/core/CHIPError.h>
Expand Down
2 changes: 2 additions & 0 deletions src/setup_payload/tests/TestHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#pragma once

#include <bitset>

#include <setup_payload/Base38Decode.cpp>
Expand Down

0 comments on commit 1270663

Please sign in to comment.