From 11869c68d9ac7b077860f784bb6a31c875872017 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Mon, 30 Jun 2025 08:41:49 -0700 Subject: [PATCH] Fix CQS signal modernize-concat-nested-namespaces in xplat/js/react-native-github/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon Reviewed By: javache Differential Revision: D77526780 --- .../core/platform/ios/ReactCommon/RCTInteropTurboModule.h | 6 ++---- .../core/platform/ios/ReactCommon/RCTInteropTurboModule.mm | 6 ++---- .../core/platform/ios/ReactCommon/RCTTurboModule.mm | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h index 00f7df59187..de805762c82 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h @@ -15,8 +15,7 @@ #import "RCTTurboModule.h" -namespace facebook { -namespace react { +namespace facebook::react { class JSI_EXPORT ObjCInteropTurboModule : public ObjCTurboModule { public: @@ -94,5 +93,4 @@ class JSI_EXPORT ObjCInteropTurboModule : public ObjCTurboModule { void _logLegacyArchitectureWarning(NSString *moduleName, const std::string &methodName); }; -} // namespace react -} // namespace facebook +} // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm index 98df9165c41..1fab2861ff5 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm @@ -17,8 +17,7 @@ #import #import -namespace facebook { -namespace react { +namespace facebook::react { namespace { @@ -695,5 +694,4 @@ std::vector ObjCInteropTurboModule::getPropertyNames( return propNames; } -} // namespace react -} // namespace facebook +} // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm index efd8febc4ba..2a677974ca8 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm @@ -39,8 +39,7 @@ static int32_t getUniqueId() return counter++; } -namespace facebook { -namespace react { +namespace facebook::react { namespace TurboModuleConvertUtils { /** @@ -856,8 +855,7 @@ void ObjCTurboModule::setEventEmitterCallback(EventEmitterCallback eventEmitterC } } -} // namespace react -} // namespace facebook +} // namespace facebook::react @implementation EventEmitterCallbackWrapper @end