Run CLANGFORMAT on FlipperKit folder
Summary: This diff runs CLANGFORMAT lint on FlipperKit. I have added CLANGFORMAT as the lint engined for objc files in xplat/sonar. Right now the iOS folder is not formatted according to CLANGFORMAT. Ran `arc lint -a --paths-cmd "find ./iOS/FlipperKit -type f" --verbose` Reviewed By: passy Differential Revision: D19942170 fbshipit-source-id: af677323af4edb761f61f8f7e289cab743aa31f2
This commit is contained in:
committed by
Facebook Github Bot
parent
127eec5fa1
commit
ca513cf370
@@ -16,7 +16,7 @@
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
using ObjCPlugin = NSObject<FlipperPlugin> *;
|
||||
using ObjCPlugin = NSObject<FlipperPlugin>*;
|
||||
|
||||
/**
|
||||
SonarCppWrapperPlugin is a simple C++ wrapper around Objective-C Sonar plugins
|
||||
@@ -24,19 +24,24 @@ that can be passed to SonarClient. This class allows developers to write pure
|
||||
Objective-C plugins if they want.
|
||||
*/
|
||||
class FlipperCppWrapperPlugin final : public facebook::flipper::FlipperPlugin {
|
||||
public:
|
||||
public:
|
||||
// Under ARC copying objCPlugin *does* increment its retain count
|
||||
FlipperCppWrapperPlugin(ObjCPlugin objCPlugin) : _objCPlugin(objCPlugin) {}
|
||||
|
||||
std::string identifier() const override { return [[_objCPlugin identifier] UTF8String]; }
|
||||
std::string identifier() const override {
|
||||
return [[_objCPlugin identifier] UTF8String];
|
||||
}
|
||||
|
||||
void didConnect(std::shared_ptr<facebook::flipper::FlipperConnection> conn) override
|
||||
{
|
||||
FlipperCppBridgingConnection *const bridgingConn = [[FlipperCppBridgingConnection alloc] initWithCppConnection:conn];
|
||||
void didConnect(
|
||||
std::shared_ptr<facebook::flipper::FlipperConnection> conn) override {
|
||||
FlipperCppBridgingConnection* const bridgingConn =
|
||||
[[FlipperCppBridgingConnection alloc] initWithCppConnection:conn];
|
||||
[_objCPlugin didConnect:bridgingConn];
|
||||
}
|
||||
|
||||
void didDisconnect() override { [_objCPlugin didDisconnect]; }
|
||||
void didDisconnect() override {
|
||||
[_objCPlugin didDisconnect];
|
||||
}
|
||||
|
||||
bool runInBackground() override {
|
||||
if ([_objCPlugin respondsToSelector:@selector(runInBackground)]) {
|
||||
@@ -45,9 +50,11 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
ObjCPlugin getObjCPlugin() { return _objCPlugin; }
|
||||
ObjCPlugin getObjCPlugin() {
|
||||
return _objCPlugin;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
ObjCPlugin _objCPlugin;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user