Skip to content

Commit bcf9748

Browse files
generatedunixname89002005287564meta-codesync[bot]
authored andcommitted
Fix CQS signal readability-named-parameter in xplat/js/react-native-github/packages [A] (facebook#54027)
Summary: Pull Request resolved: facebook#54027 Reviewed By: javache Differential Revision: D83703007 fbshipit-source-id: 36f08f1b48f52750065a39ef322cc675aa828f9e
1 parent fd95f82 commit bcf9748

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-17
lines changed

packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ class JSIExecutor::NativeModuleProxy : public jsi::HostObject {
4545
return nativeModules->getModule(rt, name);
4646
}
4747

48-
void set(Runtime&, const PropNameID&, const Value&) override {
48+
void set(
49+
Runtime& /*unused*/,
50+
const PropNameID& /*name*/,
51+
const Value& /*value*/) override {
4952
throw std::runtime_error(
5053
"Unable to put on NativeModules: Operation unsupported");
5154
}

packages/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class [[deprecated(
8383
std::unique_ptr<const JSBigString> script,
8484
std::string sourceURL) override;
8585
#ifndef RCT_REMOVE_LEGACY_ARCH
86-
void setBundleRegistry(std::unique_ptr<RAMBundleRegistry>) override;
86+
void setBundleRegistry(std::unique_ptr<RAMBundleRegistry> r) override;
8787
#endif // RCT_REMOVE_LEGACY_ARCH
8888
void registerBundle(uint32_t bundleId, const std::string& bundlePath)
8989
override;

packages/react-native/ReactCommon/jsinspector-modern/UniqueMonostate.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,28 @@ namespace facebook::react::jsinspector_modern {
1818
*/
1919
template <size_t key>
2020
struct UniqueMonostate {
21-
constexpr bool operator==(const UniqueMonostate<key>&) const noexcept {
21+
constexpr bool operator==(
22+
const UniqueMonostate<key>& /*unused*/) const noexcept {
2223
return true;
2324
}
24-
constexpr bool operator!=(const UniqueMonostate<key>&) const noexcept {
25+
constexpr bool operator!=(
26+
const UniqueMonostate<key>& /*unused*/) const noexcept {
2527
return false;
2628
}
27-
constexpr bool operator<(const UniqueMonostate<key>&) const noexcept {
29+
constexpr bool operator<(
30+
const UniqueMonostate<key>& /*unused*/) const noexcept {
2831
return false;
2932
}
30-
constexpr bool operator>(const UniqueMonostate<key>&) const noexcept {
33+
constexpr bool operator>(
34+
const UniqueMonostate<key>& /*unused*/) const noexcept {
3135
return false;
3236
}
33-
constexpr bool operator<=(const UniqueMonostate<key>&) const noexcept {
37+
constexpr bool operator<=(
38+
const UniqueMonostate<key>& /*unused*/) const noexcept {
3439
return true;
3540
}
36-
constexpr bool operator>=(const UniqueMonostate<key>&) const noexcept {
41+
constexpr bool operator>=(
42+
const UniqueMonostate<key>& /*unused*/) const noexcept {
3743
return true;
3844
}
3945
};
@@ -45,8 +51,8 @@ namespace std {
4551
template <size_t key>
4652
struct hash<::facebook::react::jsinspector_modern::UniqueMonostate<key>> {
4753
size_t operator()(
48-
const ::facebook::react::jsinspector_modern::UniqueMonostate<key>&)
49-
const noexcept {
54+
const ::facebook::react::jsinspector_modern::UniqueMonostate<
55+
key>& /*unused*/) const noexcept {
5056
return key;
5157
}
5258
};

packages/react-native/ReactCommon/jsinspector-modern/tests/InspectorMocks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class MockRuntimeAgentDelegate : public RuntimeAgentDelegate {
175175
inline MockRuntimeAgentDelegate(
176176
FrontendChannel frontendChannel,
177177
SessionState& sessionState,
178-
std::unique_ptr<RuntimeAgentDelegate::ExportedState>,
178+
std::unique_ptr<RuntimeAgentDelegate::ExportedState> /*unused*/,
179179
ExecutionContextDescription executionContextDescription,
180180
const RuntimeExecutor& /*runtimeExecutor*/)
181181
: frontendChannel(std::move(frontendChannel)),

packages/react-native/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class JsiIntegrationPortableTestBase : public ::testing::Test,
186186
}
187187

188188
void onSetPausedInDebuggerMessage(
189-
const OverlaySetPausedInDebuggerMessageRequest&) override {}
189+
const OverlaySetPausedInDebuggerMessageRequest& /*request*/) override {}
190190
};
191191

192192
} // namespace facebook::react::jsinspector_modern

packages/react-native/ReactCommon/jsinspector-modern/tests/ReactNativeMocks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MockMessageQueueThread : public react::MessageQueueThread {
2929
void runOnQueue(std::function<void()>&& func) override;
3030

3131
// Unused
32-
void runOnQueueSync(std::function<void()>&&) override;
32+
void runOnQueueSync(std::function<void()>&& callback) override;
3333

3434
// Unused
3535
void quitSynchronous() override;

packages/react-native/ReactCommon/react/bridging/Array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct BridgingStatic {
3737
facebook::jsi::Runtime& rt,
3838
const T& array,
3939
const std::shared_ptr<CallInvoker>& jsInvoker,
40-
std::index_sequence<Index...>) {
40+
std::index_sequence<Index...> /*unused*/) {
4141
return jsi::Array::createWithElements(
4242
rt, bridging::toJs(rt, std::get<Index>(array), jsInvoker)...);
4343
}

packages/react-native/ReactCommon/react/bridging/Base.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct Bridging;
2424
template <>
2525
struct Bridging<void> {
2626
// Highly generic code may result in "casting" to void.
27-
static void fromJs(jsi::Runtime&, const jsi::Value&) {}
27+
static void fromJs(jsi::Runtime& /*unused*/, const jsi::Value& /*unused*/) {}
2828
};
2929

3030
namespace bridging {
@@ -105,15 +105,16 @@ template <typename T>
105105
auto toJs(
106106
jsi::Runtime& rt,
107107
T&& value,
108-
const std::shared_ptr<CallInvoker>& = nullptr) -> remove_cvref_t<T> {
108+
const std::shared_ptr<CallInvoker>& /*unused*/ = nullptr)
109+
-> remove_cvref_t<T> {
109110
return convert(rt, std::forward<T>(value));
110111
}
111112

112113
template <typename T>
113114
auto toJs(
114115
jsi::Runtime& rt,
115116
T&& value,
116-
const std::shared_ptr<CallInvoker>& = nullptr)
117+
const std::shared_ptr<CallInvoker>& /*unused*/ = nullptr)
117118
-> decltype(Bridging<bridging_t<T>>::toJs(rt, std::forward<T>(value))) {
118119
return Bridging<bridging_t<T>>::toJs(rt, std::forward<T>(value));
119120
}

0 commit comments

Comments
 (0)