diff --git a/src/app/clusters/application-launcher-server/application-launcher-server.h b/src/app/clusters/application-launcher-server/application-launcher-server.h index 5c71e3d93fc82a..f7e538e9f52030 100644 --- a/src/app/clusters/application-launcher-server/application-launcher-server.h +++ b/src/app/clusters/application-launcher-server/application-launcher-server.h @@ -20,6 +20,9 @@ *server implementation of the Application Launcher cluster. ******************************************************************************* ******************************************************************************/ + +#pragma once + struct ApplicationLauncherResponse { uint8_t status; diff --git a/src/app/clusters/media-playback-server/media-playback-server.h b/src/app/clusters/media-playback-server/media-playback-server.h index 2850f97851b1a7..94edf7ed6fd6cc 100644 --- a/src/app/clusters/media-playback-server/media-playback-server.h +++ b/src/app/clusters/media-playback-server/media-playback-server.h @@ -22,6 +22,8 @@ ******************************************************************************* ******************************************************************************/ +#pragma once + #include enum MediaPlaybackRequest : uint8_t diff --git a/src/app/clusters/power-source-server/power-source-server.h b/src/app/clusters/power-source-server/power-source-server.h index 583960d1d0520a..b1c3ff853259a8 100644 --- a/src/app/clusters/power-source-server/power-source-server.h +++ b/src/app/clusters/power-source-server/power-source-server.h @@ -14,3 +14,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#pragma once diff --git a/src/app/clusters/target-navigator-server/target-navigator-server.h b/src/app/clusters/target-navigator-server/target-navigator-server.h index 9cfb1f06dd6fc7..17d77613e0302a 100644 --- a/src/app/clusters/target-navigator-server/target-navigator-server.h +++ b/src/app/clusters/target-navigator-server/target-navigator-server.h @@ -21,6 +21,8 @@ ******************************************************************************* ******************************************************************************/ +#pragma once + struct TargetNavigatorResponse { uint8_t status; diff --git a/src/app/clusters/zll-level-control-server/zll-level-control-server.h b/src/app/clusters/zll-level-control-server/zll-level-control-server.h index 11510d085e02ee..e1fd7510970c5a 100644 --- a/src/app/clusters/zll-level-control-server/zll-level-control-server.h +++ b/src/app/clusters/zll-level-control-server/zll-level-control-server.h @@ -32,6 +32,8 @@ * limitations under the License. */ +#pragma once + /** * @file * @brief Definitions for the ZLL Level Control Server plugin. diff --git a/src/app/clusters/zll-on-off-server/zll-on-off-server.h b/src/app/clusters/zll-on-off-server/zll-on-off-server.h index aa08e6809d7548..1c994fc38a8c34 100644 --- a/src/app/clusters/zll-on-off-server/zll-on-off-server.h +++ b/src/app/clusters/zll-on-off-server/zll-on-off-server.h @@ -32,6 +32,8 @@ * limitations under the License. */ +#pragma once + /** * @file * @brief Definitions for the ZLL On Off Server plugin. diff --git a/src/app/clusters/zll-scenes-server/zll-scenes-server.h b/src/app/clusters/zll-scenes-server/zll-scenes-server.h index f2e37d46b25d23..e2c41e5c443bd2 100644 --- a/src/app/clusters/zll-scenes-server/zll-scenes-server.h +++ b/src/app/clusters/zll-scenes-server/zll-scenes-server.h @@ -32,6 +32,8 @@ * limitations under the License. */ +#pragma once + /** * @file * @brief Definitions for the ZLL Scenes Server plugin. diff --git a/src/controller/java/StackLock.h b/src/controller/java/StackLock.h index 0d8a1eff2c3360..42813ea1947df1 100644 --- a/src/controller/java/StackLock.h +++ b/src/controller/java/StackLock.h @@ -15,6 +15,8 @@ * limitations under the License. */ +#pragma once + #include /** A scoped lock/unlock around a mutex. */ diff --git a/src/include/platform/GeneralUtils.h b/src/include/platform/GeneralUtils.h index e7bfc176e908a5..a9b8ba8bdef539 100644 --- a/src/include/platform/GeneralUtils.h +++ b/src/include/platform/GeneralUtils.h @@ -21,6 +21,8 @@ * General utility functions available on all platforms. */ +#pragma once + #include namespace chip { diff --git a/src/lib/mdns/Advertiser_ImplMinimalMdnsAllocator.h b/src/lib/mdns/Advertiser_ImplMinimalMdnsAllocator.h index dccb515e3df804..e36e7c960f5636 100644 --- a/src/lib/mdns/Advertiser_ImplMinimalMdnsAllocator.h +++ b/src/lib/mdns/Advertiser_ImplMinimalMdnsAllocator.h @@ -14,6 +14,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +#pragma once + #include #include diff --git a/src/lib/mdns/AllInterfacesListenIterator.h b/src/lib/mdns/AllInterfacesListenIterator.h index 4439a9fa450e20..de4c5a8cdb75dc 100644 --- a/src/lib/mdns/AllInterfacesListenIterator.h +++ b/src/lib/mdns/AllInterfacesListenIterator.h @@ -15,6 +15,8 @@ * limitations under the License. */ +#pragma once + #include #include diff --git a/src/lib/support/Defer.h b/src/lib/support/Defer.h index 6b32a8417ebb97..a576a60f139534 100644 --- a/src/lib/support/Defer.h +++ b/src/lib/support/Defer.h @@ -16,6 +16,8 @@ * limitations under the License. */ +#pragma once + #include template diff --git a/src/platform/Darwin/CHIPP256KeypairNativeBridge.h b/src/platform/Darwin/CHIPP256KeypairNativeBridge.h index d3e39df61aaead..3b51cafd29d620 100644 --- a/src/platform/Darwin/CHIPP256KeypairNativeBridge.h +++ b/src/platform/Darwin/CHIPP256KeypairNativeBridge.h @@ -16,6 +16,8 @@ * limitations under the License. */ +#pragma once + #include namespace chip { diff --git a/src/platform/Darwin/MdnsError.h b/src/platform/Darwin/MdnsError.h index 3a2fc96a10c96a..83329987d8ef20 100644 --- a/src/platform/Darwin/MdnsError.h +++ b/src/platform/Darwin/MdnsError.h @@ -15,6 +15,8 @@ * limitations under the License. */ +#pragma once + #include "MdnsImpl.h" namespace chip { diff --git a/src/platform/fake/MdnsImpl.h b/src/platform/fake/MdnsImpl.h index e2d176ad67a3fb..79212bb7959878 100644 --- a/src/platform/fake/MdnsImpl.h +++ b/src/platform/fake/MdnsImpl.h @@ -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 diff --git a/src/setup_payload/ManualSetupPayloadParser.h b/src/setup_payload/ManualSetupPayloadParser.h index 3a4dff4a6e81a9..f8457a3c4aa124 100644 --- a/src/setup_payload/ManualSetupPayloadParser.h +++ b/src/setup_payload/ManualSetupPayloadParser.h @@ -21,6 +21,8 @@ * CHIP specification. */ +#pragma once + #include "SetupPayload.h" #include diff --git a/src/setup_payload/QRCodeSetupPayloadParser.h b/src/setup_payload/QRCodeSetupPayloadParser.h index 8b75ee1fb32a3b..c7e431c4158791 100644 --- a/src/setup_payload/QRCodeSetupPayloadParser.h +++ b/src/setup_payload/QRCodeSetupPayloadParser.h @@ -21,6 +21,8 @@ * CHIP specification. */ +#pragma once + #include "SetupPayload.h" #include diff --git a/src/setup_payload/tests/TestHelpers.h b/src/setup_payload/tests/TestHelpers.h index 5bd2c976dc566c..6a155dec8950de 100644 --- a/src/setup_payload/tests/TestHelpers.h +++ b/src/setup_payload/tests/TestHelpers.h @@ -15,6 +15,8 @@ * limitations under the License. */ +#pragma once + #include #include