Skip to content

Commit

Permalink
uppress clang-format on some include order
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen-MSFT committed Aug 14, 2023
1 parent e53ead3 commit 8d3ba52
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#include "pch.h"
#include "RNTesterApp-Fabric.h"

// clang-format off
#include "../../../../vnext/codegen/NativeDeviceInfoTypes.g.h"
#include "../../../../vnext/codegen/NativeDeviceInfoSpec.g.h"

// clang-format on
#include <DispatcherQueue.h>
#include <UIAutomation.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
// #include "AutolinkedNativeModules.g.h"

#include <winrt/Windows.Foundation.Collections.h>

// clang-format off
#include "../../../../vnext/codegen/NativeDeviceInfoTypes.g.h"
#include "../../../../vnext/codegen/NativeDeviceInfoSpec.g.h"

// clang-format on
#include <DispatcherQueue.h>
#include <UIAutomation.h>
#include <windows.ui.composition.interop.h>
Expand Down
3 changes: 2 additions & 1 deletion packages/sample-apps/windows/SampleLibraryCPP/MyModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include "..\..\codegen\NativeMyModuleTypes.g.h"
#include "..\..\codegen\NativeMyModuleSpec.g.h"
// clang-format on
#include "DebugHelpers.h"

#define DEBUG_MYMODULE_OUTPUT(...) DebugWriteLine("MyModule", ##__VA_ARGS__);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

#include "pch.h"
#include "TestReactNativeHostHolder.h"
// clang-format off
#include "..\codegen\NativeDeviceInfoTypes.g.h"
#include "..\codegen\NativeDeviceInfoSpec.g.h"
// clang-format on
#include <NativeModules.h>

namespace ReactNativeIntegrationTests {
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/AlertModule.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once

// clang-format off
#include "codegen/NativeDialogManagerWindowsTypes.g.h"
#include "codegen/NativeDialogManagerWindowsSpec.g.h"
// clang-format on
#include <NativeModules.h>
#include <winrt/Windows.ApplicationModel.h>
#include <winrt/Windows.Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include "codegen/NativeAnimatedModuleTypes.g.h"
#include "codegen/NativeAnimatedModuleSpec.g.h"

// clang-format on
#include "NativeAnimatedNodeManager.h"

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
#include "TrackingAnimatedNode.h"
#include "TransformAnimatedNode.h"
#include "ValueAnimatedNode.h"

// clang-format off
#include "codegen/NativeAnimatedModuleTypes.g.h"
#include "codegen/NativeAnimatedModuleSpec.g.h"
// clang-format on

namespace Microsoft::ReactNative {
/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/AppStateModule.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once

// clang-format off
#include "codegen/NativeAppStateTypes.g.h"
#include "codegen/NativeAppStateSpec.g.h"
// clang-format on
#include <NativeModules.h>
#include <winrt/Windows.ApplicationModel.h>
#include <winrt/Windows.Foundation.h>
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/AppThemeModuleUwp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
#include <ReactNotificationService.h>
#include <cxxreact/MessageQueueThread.h>
#include <winrt/Windows.UI.ViewManagement.h>

// clang-format off
#include "codegen/NativeAppThemeTypes.g.h"
#include "codegen/NativeAppThemeSpec.g.h"
// clang-format on
#include <NativeModules.h>

namespace Microsoft::ReactNative {
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/DeviceInfoModule.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once

// clang-format off
#include "codegen/NativeDeviceInfoTypes.g.h"
#include "codegen/NativeDeviceInfoSpec.g.h"
// clang-format on
#include <NativeModules.h>
#include <React.h>
#include <ReactNotificationService.h>
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/I18nManagerModule.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once

// clang-format off
#include "codegen/NativeI18nManagerTypes.g.h"
#include "codegen/NativeI18nManagerSpec.g.h"
// clang-format on
#include <NativeModules.h>
#include <winrt/Windows.ApplicationModel.h>
#include <winrt/Windows.Foundation.h>
Expand Down
3 changes: 2 additions & 1 deletion vnext/Microsoft.ReactNative/Modules/ImageViewManagerModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include "codegen/NativeImageLoaderIOSTypes.g.h"
#include "codegen/NativeImageLoaderIOSSpec.g.h"
// clang-format on
#include <NativeImageLoaderIOSSpec.g.h>
#include <NativeModules.h>
#include <winrt/Windows.ApplicationModel.h>
Expand Down
4 changes: 2 additions & 2 deletions vnext/Shared/Modules/BlobModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include <NativeBlobModuleTypes.g.h>
#include <NativeBlobModuleSpec.g.h>

// clang-format on
#include <Networking/IBlobResource.h>

// React Native
Expand Down
3 changes: 2 additions & 1 deletion vnext/Shared/Modules/HttpModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include <NativeModules.h>
#include <NativeNetworkingIOSTypes.g.h>
#include <NativeNetworkingIOSSpec.g.h>
// clang-format on
#include <Networking/IHttpResource.h>

// React Native
Expand Down
3 changes: 2 additions & 1 deletion vnext/Shared/Modules/WebSocketTurboModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// Licensed under the MIT License.

#pragma once

// clang-format off
#include <NativeModules.h>
#include <NativeWebSocketModuleTypes.g.h>
#include <NativeWebSocketModuleSpec.g.h>
// clang-format on
#include <Modules/IWebSocketModuleProxy.h>
#include <Networking/IWebSocketResource.h>

Expand Down

0 comments on commit 8d3ba52

Please sign in to comment.