From 986bcdbbfbd980c9a31a2dfc6ac86709305bde3e Mon Sep 17 00:00:00 2001 From: generatedunixname89002005287564 Date: Wed, 16 Apr 2025 16:52:06 -0700 Subject: [PATCH] Fix CQS signal. Id] 42896038 -- modernize-concat-nested-namespaces in xplat/js/react-native-github/packages/react-native/ReactCommon/hermes/inspector-modern/chrome Reviewed By: dtolnay Differential Revision: D73023455 fbshipit-source-id: 394a337d10546308efa4a49aa7e72b67ef41c2f1 --- .../hermes/inspector-modern/chrome/ConnectionDemux.cpp | 10 ++-------- .../hermes/inspector-modern/chrome/ConnectionDemux.h | 10 ++-------- .../hermes/inspector-modern/chrome/Registration.cpp | 10 ++-------- .../hermes/inspector-modern/chrome/Registration.h | 10 ++-------- 4 files changed, 8 insertions(+), 32 deletions(-) diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp index 0b9796aee0e..8e2fb90e0b0 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp @@ -14,10 +14,7 @@ #include -namespace facebook { -namespace hermes { -namespace inspector_modern { -namespace chrome { +namespace facebook::hermes::inspector_modern::chrome { using ::facebook::react::jsinspector_modern::IInspector; using ::facebook::react::jsinspector_modern::ILocalConnection; @@ -139,9 +136,6 @@ void ConnectionDemux::removePage(int pageId) { conns_.erase(pageId); } -} // namespace chrome -} // namespace inspector_modern -} // namespace hermes -} // namespace facebook +} // namespace facebook::hermes::inspector_modern::chrome #endif // HERMES_ENABLE_DEBUGGER diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.h b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.h index ba1325ef33f..2c0fcd5b6ef 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.h +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.h @@ -21,10 +21,7 @@ #include #include -namespace facebook { -namespace hermes { -namespace inspector_modern { -namespace chrome { +namespace facebook::hermes::inspector_modern::chrome { /* * ConnectionDemux keeps track of all debuggable Hermes runtimes (called @@ -60,9 +57,6 @@ class ConnectionDemux { std::shared_ptr> inspectedContexts_; }; -} // namespace chrome -} // namespace inspector_modern -} // namespace hermes -} // namespace facebook +} // namespace facebook::hermes::inspector_modern::chrome #endif // HERMES_ENABLE_DEBUGGER diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp index 312330c2736..c1e000a3099 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp @@ -10,10 +10,7 @@ #ifdef HERMES_ENABLE_DEBUGGER -namespace facebook { -namespace hermes { -namespace inspector_modern { -namespace chrome { +namespace facebook::hermes::inspector_modern::chrome { namespace { @@ -35,9 +32,6 @@ void disableDebugging(DebugSessionToken session) { demux().disableDebugging(session); } -} // namespace chrome -} // namespace inspector_modern -} // namespace hermes -} // namespace facebook +} // namespace facebook::hermes::inspector_modern::chrome #endif // HERMES_ENABLE_DEBUGGER diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.h b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.h index 3395a9e0985..81311d2a420 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.h +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.h @@ -15,10 +15,7 @@ #include #include -namespace facebook { -namespace hermes { -namespace inspector_modern { -namespace chrome { +namespace facebook::hermes::inspector_modern::chrome { using DebugSessionToken = int; @@ -39,9 +36,6 @@ extern DebugSessionToken enableDebugging( */ extern void disableDebugging(DebugSessionToken session); -} // namespace chrome -} // namespace inspector_modern -} // namespace hermes -} // namespace facebook +} // namespace facebook::hermes::inspector_modern::chrome #endif // HERMES_ENABLE_DEBUGGER