Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherrypick #14157 Add linter exception to generated headers for Office builds #14201

Open
wants to merge 2 commits into
base: 0.73-stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Cherry pick #14157 Add linter exception to generated headers for Office builds",
"packageName": "@react-native-windows/codegen",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Cherry pick #14157 Add linter exception to generated headers for Office builds",
"packageName": "react-native-windows",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const headerTemplate = `/*
* in a way that also verifies at compile time that the native module matches the interface required
* by the TurboModule JS spec.
*/
#pragma once`;
#pragma once
// clang-format off`;

const specTemplate = `::_MODULE_CUSTPM_TYPES_REFLECTION_::
struct ::_MODULE_NAME_::Spec : winrt::Microsoft::ReactNative::TurboModuleSpec {
Expand Down
1 change: 1 addition & 0 deletions packages/sample-apps/codegen/NativeMyModuleDataTypes.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <string>
#include <optional>
Expand Down
1 change: 1 addition & 0 deletions packages/sample-apps/codegen/NativeMyModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

// #include "NativeMyModuleDataTypes.g.h" before this file to use the generated type definition
#include <NativeModules.h>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAccessibilityInfoSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAccessibilityManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeActionSheetManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAlertManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAnimatedModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAnimatedTurboModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAnimationsDebugModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAppStateSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAppThemeSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeAppearanceSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeBlobModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeBugReportingSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeClipboardSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDevLoadingViewSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDevMenuSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDevSettingsSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDevToolsSettingsManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDeviceEventManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDeviceInfoSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDialogManagerAndroidSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeDialogManagerWindowsSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeExceptionsManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeFileReaderModuleSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeFrameRateLoggerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeHeadlessJsTaskSupportSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeI18nManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeImageEditorSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeImageLoaderAndroidSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeImageLoaderIOSSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeImageStoreAndroidSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeImageStoreIOSSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeIntentAndroidSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeIntersectionObserverSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeJSCHeapCaptureSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeJSCSamplingProfilerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeKeyboardObserverSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeLinkingManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeLogBoxSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeModalManagerSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeMutationObserverSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeNetworkingAndroidSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativeNetworkingIOSSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativePerformanceObserverSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions vnext/codegen/NativePerformanceSpec.g.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off

#include <NativeModules.h>
#include <tuple>
Expand Down
Loading
Loading