mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Run clang-format and apply patches
Summary: Run clang-format and add .clang-tidy with `clang-diagnostic-*` to several more directories in order to catch any problems. Changelog: [Internal] Reviewed By: shergin Differential Revision: D19860169 fbshipit-source-id: 7785aab010c8e6945cc6b5c9b68cb8ee0cdbb7fa
This commit is contained in:
committed by
Facebook Github Bot
parent
f0c7178a3a
commit
8ae3174873
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "HermesSamplingProfiler.h"
|
||||
|
||||
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) {
|
||||
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
|
||||
return facebook::jni::initialize(vm, [] {
|
||||
facebook::jsi::jni::HermesSamplingProfiler::registerNatives();
|
||||
});
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ class HermesExecutorFactory : public JSExecutorFactory {
|
||||
public:
|
||||
explicit HermesExecutorFactory(
|
||||
JSIExecutor::RuntimeInstaller runtimeInstaller,
|
||||
const JSIScopedTimeoutInvoker& timeoutInvoker =
|
||||
const JSIScopedTimeoutInvoker &timeoutInvoker =
|
||||
JSIExecutor::defaultTimeoutInvoker,
|
||||
::hermes::vm::RuntimeConfig runtimeConfig = ::hermes::vm::RuntimeConfig())
|
||||
: runtimeInstaller_(runtimeInstaller),
|
||||
@@ -44,7 +44,7 @@ class HermesExecutor : public JSIExecutor {
|
||||
std::shared_ptr<jsi::Runtime> runtime,
|
||||
std::shared_ptr<ExecutorDelegate> delegate,
|
||||
std::shared_ptr<MessageQueueThread> jsQueue,
|
||||
const JSIScopedTimeoutInvoker& timeoutInvoker,
|
||||
const JSIScopedTimeoutInvoker &timeoutInvoker,
|
||||
RuntimeInstaller runtimeInstaller);
|
||||
|
||||
private:
|
||||
|
||||
+1
-2
@@ -10,8 +10,7 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
CallInvokerHolder::CallInvokerHolder(
|
||||
std::shared_ptr<CallInvoker> callInvoker)
|
||||
CallInvokerHolder::CallInvokerHolder(std::shared_ptr<CallInvoker> callInvoker)
|
||||
: _callInvoker(callInvoker) {}
|
||||
|
||||
std::shared_ptr<CallInvoker> CallInvokerHolder::getCallInvoker() {
|
||||
|
||||
Reference in New Issue
Block a user