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:
Héctor Ramos
2020-02-27 08:29:30 -08:00
committed by Facebook Github Bot
parent f0c7178a3a
commit 8ae3174873
41 changed files with 1691 additions and 1361 deletions
@@ -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();
});
@@ -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:
@@ -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() {