Skip to content

Commit 986bcdb

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
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
1 parent 5ed4592 commit 986bcdb

File tree

4 files changed

+8
-32
lines changed

4 files changed

+8
-32
lines changed

Diff for: packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414

1515
#include <jsinspector-modern/InspectorInterfaces.h>
1616

17-
namespace facebook {
18-
namespace hermes {
19-
namespace inspector_modern {
20-
namespace chrome {
17+
namespace facebook::hermes::inspector_modern::chrome {
2118

2219
using ::facebook::react::jsinspector_modern::IInspector;
2320
using ::facebook::react::jsinspector_modern::ILocalConnection;
@@ -139,9 +136,6 @@ void ConnectionDemux::removePage(int pageId) {
139136
conns_.erase(pageId);
140137
}
141138

142-
} // namespace chrome
143-
} // namespace inspector_modern
144-
} // namespace hermes
145-
} // namespace facebook
139+
} // namespace facebook::hermes::inspector_modern::chrome
146140

147141
#endif // HERMES_ENABLE_DEBUGGER

Diff for: packages/react-native/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.h

+2-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
#include <hermes/inspector/chrome/CDPHandler.h>
2222
#include <jsinspector-modern/InspectorInterfaces.h>
2323

24-
namespace facebook {
25-
namespace hermes {
26-
namespace inspector_modern {
27-
namespace chrome {
24+
namespace facebook::hermes::inspector_modern::chrome {
2825

2926
/*
3027
* ConnectionDemux keeps track of all debuggable Hermes runtimes (called
@@ -60,9 +57,6 @@ class ConnectionDemux {
6057
std::shared_ptr<std::unordered_set<std::string>> inspectedContexts_;
6158
};
6259

63-
} // namespace chrome
64-
} // namespace inspector_modern
65-
} // namespace hermes
66-
} // namespace facebook
60+
} // namespace facebook::hermes::inspector_modern::chrome
6761

6862
#endif // HERMES_ENABLE_DEBUGGER

Diff for: packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010

1111
#ifdef HERMES_ENABLE_DEBUGGER
1212

13-
namespace facebook {
14-
namespace hermes {
15-
namespace inspector_modern {
16-
namespace chrome {
13+
namespace facebook::hermes::inspector_modern::chrome {
1714

1815
namespace {
1916

@@ -35,9 +32,6 @@ void disableDebugging(DebugSessionToken session) {
3532
demux().disableDebugging(session);
3633
}
3734

38-
} // namespace chrome
39-
} // namespace inspector_modern
40-
} // namespace hermes
41-
} // namespace facebook
35+
} // namespace facebook::hermes::inspector_modern::chrome
4236

4337
#endif // HERMES_ENABLE_DEBUGGER

Diff for: packages/react-native/ReactCommon/hermes/inspector-modern/chrome/Registration.h

+2-8
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
#include <hermes/hermes.h>
1616
#include <hermes/inspector/RuntimeAdapter.h>
1717

18-
namespace facebook {
19-
namespace hermes {
20-
namespace inspector_modern {
21-
namespace chrome {
18+
namespace facebook::hermes::inspector_modern::chrome {
2219

2320
using DebugSessionToken = int;
2421

@@ -39,9 +36,6 @@ extern DebugSessionToken enableDebugging(
3936
*/
4037
extern void disableDebugging(DebugSessionToken session);
4138

42-
} // namespace chrome
43-
} // namespace inspector_modern
44-
} // namespace hermes
45-
} // namespace facebook
39+
} // namespace facebook::hermes::inspector_modern::chrome
4640

4741
#endif // HERMES_ENABLE_DEBUGGER

0 commit comments

Comments
 (0)