mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
PointerAlignment: Left
Summary: This changes Clang format config to enforce left pointer alignment instead of right, in accordance with https://www.internalfb.com/intern/wiki/Cpp/CppStyle/ Changelog: [Internal] bypass-github-export-checks Reviewed By: sammy-SC Differential Revision: D48952040 fbshipit-source-id: 108329b2f11d2041a31dee3334c7801d69a3f1ad
This commit is contained in:
committed by
Facebook GitHub Bot
parent
321f7dbcad
commit
d2e91599c8
@@ -58,7 +58,7 @@ enum CustomEnumInt { A = 23, B = 42 };
|
||||
|
||||
template <>
|
||||
struct Bridging<CustomEnumInt> {
|
||||
static CustomEnumInt fromJs(jsi::Runtime &rt, int32_t value) {
|
||||
static CustomEnumInt fromJs(jsi::Runtime& rt, int32_t value) {
|
||||
if (value == 23) {
|
||||
return CustomEnumInt::A;
|
||||
} else if (value == 42) {
|
||||
@@ -68,7 +68,7 @@ struct Bridging<CustomEnumInt> {
|
||||
}
|
||||
}
|
||||
|
||||
static jsi::Value toJs(jsi::Runtime &rt, CustomEnumInt value) {
|
||||
static jsi::Value toJs(jsi::Runtime& rt, CustomEnumInt value) {
|
||||
return bridging::toJs(rt, static_cast<int32_t>(value));
|
||||
}
|
||||
};
|
||||
@@ -104,71 +104,71 @@ class NativeCxxModuleExample
|
||||
NativeCxxModuleExample(std::shared_ptr<CallInvoker> jsInvoker);
|
||||
|
||||
void getValueWithCallback(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
AsyncCallback<std::string> callback);
|
||||
|
||||
std::vector<std::optional<ObjectStruct>> getArray(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
std::vector<std::optional<ObjectStruct>> arg);
|
||||
|
||||
bool getBool(jsi::Runtime &rt, bool arg);
|
||||
bool getBool(jsi::Runtime& rt, bool arg);
|
||||
|
||||
ConstantsStruct getConstants(jsi::Runtime &rt);
|
||||
ConstantsStruct getConstants(jsi::Runtime& rt);
|
||||
|
||||
CustomEnumInt getCustomEnum(jsi::Runtime &rt, CustomEnumInt arg);
|
||||
CustomEnumInt getCustomEnum(jsi::Runtime& rt, CustomEnumInt arg);
|
||||
|
||||
std::shared_ptr<CustomHostObject> getCustomHostObject(jsi::Runtime &rt);
|
||||
std::shared_ptr<CustomHostObject> getCustomHostObject(jsi::Runtime& rt);
|
||||
|
||||
std::string consumeCustomHostObject(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
std::shared_ptr<CustomHostObject> arg);
|
||||
|
||||
NativeCxxModuleExampleCxxEnumFloat getNumEnum(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
NativeCxxModuleExampleCxxEnumInt arg);
|
||||
|
||||
NativeCxxModuleExampleCxxEnumStr getStrEnum(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
NativeCxxModuleExampleCxxEnumNone arg);
|
||||
|
||||
std::map<std::string, std::optional<int32_t>> getMap(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
std::map<std::string, std::optional<int32_t>> arg);
|
||||
|
||||
double getNumber(jsi::Runtime &rt, double arg);
|
||||
double getNumber(jsi::Runtime& rt, double arg);
|
||||
|
||||
ObjectStruct getObject(jsi::Runtime &rt, ObjectStruct arg);
|
||||
ObjectStruct getObject(jsi::Runtime& rt, ObjectStruct arg);
|
||||
|
||||
std::set<float> getSet(jsi::Runtime &rt, std::set<float> arg);
|
||||
std::set<float> getSet(jsi::Runtime& rt, std::set<float> arg);
|
||||
|
||||
std::string getString(jsi::Runtime &rt, std::string arg);
|
||||
std::string getString(jsi::Runtime& rt, std::string arg);
|
||||
|
||||
std::string getUnion(jsi::Runtime &rt, float x, std::string y, jsi::Object z);
|
||||
std::string getUnion(jsi::Runtime& rt, float x, std::string y, jsi::Object z);
|
||||
|
||||
ValueStruct
|
||||
getValue(jsi::Runtime &rt, double x, std::string y, ObjectStruct z);
|
||||
getValue(jsi::Runtime& rt, double x, std::string y, ObjectStruct z);
|
||||
|
||||
AsyncPromise<std::string> getValueWithPromise(jsi::Runtime &rt, bool error);
|
||||
AsyncPromise<std::string> getValueWithPromise(jsi::Runtime& rt, bool error);
|
||||
|
||||
std::optional<bool> getWithWithOptionalArgs(
|
||||
jsi::Runtime &rt,
|
||||
jsi::Runtime& rt,
|
||||
std::optional<bool> optionalArg);
|
||||
|
||||
void voidFunc(jsi::Runtime &rt);
|
||||
void voidFunc(jsi::Runtime& rt);
|
||||
|
||||
void emitCustomDeviceEvent(jsi::Runtime &rt, jsi::String eventName);
|
||||
void emitCustomDeviceEvent(jsi::Runtime& rt, jsi::String eventName);
|
||||
|
||||
void voidFuncThrows(jsi::Runtime &rt);
|
||||
void voidFuncThrows(jsi::Runtime& rt);
|
||||
|
||||
ObjectStruct getObjectThrows(jsi::Runtime &rt, ObjectStruct arg);
|
||||
ObjectStruct getObjectThrows(jsi::Runtime& rt, ObjectStruct arg);
|
||||
|
||||
AsyncPromise<jsi::Value> promiseThrows(jsi::Runtime &rt);
|
||||
AsyncPromise<jsi::Value> promiseThrows(jsi::Runtime& rt);
|
||||
|
||||
void voidFuncAssert(jsi::Runtime &rt);
|
||||
void voidFuncAssert(jsi::Runtime& rt);
|
||||
|
||||
ObjectStruct getObjectAssert(jsi::Runtime &rt, ObjectStruct arg);
|
||||
ObjectStruct getObjectAssert(jsi::Runtime& rt, ObjectStruct arg);
|
||||
|
||||
AsyncPromise<jsi::Value> promiseAssert(jsi::Runtime &rt);
|
||||
AsyncPromise<jsi::Value> promiseAssert(jsi::Runtime& rt);
|
||||
};
|
||||
|
||||
} // namespace facebook::react
|
||||
|
||||
Reference in New Issue
Block a user