Run CLANGFORMAT on plugins
Summary: This diff runs CLANGFORMAT lint on plugins. 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/Plugins -type f" --verbose` Reviewed By: passy Differential Revision: D19942173 fbshipit-source-id: 8b975b0a344df073b02d69cd1f9ee5629af2799d
This commit is contained in:
committed by
Facebook Github Bot
parent
a19a430eee
commit
e8b20d5b15
@@ -12,7 +12,7 @@
|
||||
+ (instancetype)sharedInstance;
|
||||
+ (UIColor*)overlayColor;
|
||||
|
||||
- (void)mountInView:(UIView *)view withFrame:(CGRect)frame;
|
||||
- (void)mountInView:(UIView*)view withFrame:(CGRect)frame;
|
||||
- (void)unmount;
|
||||
|
||||
@end
|
||||
|
||||
@@ -9,16 +9,15 @@
|
||||
|
||||
#import "SKHighlightOverlay.h"
|
||||
|
||||
@implementation SKHighlightOverlay
|
||||
{
|
||||
CALayer *_overlayLayer;
|
||||
@implementation SKHighlightOverlay {
|
||||
CALayer* _overlayLayer;
|
||||
}
|
||||
|
||||
+ (instancetype)sharedInstance {
|
||||
static SKHighlightOverlay *sharedInstance = nil;
|
||||
static SKHighlightOverlay* sharedInstance = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
sharedInstance = [self new];
|
||||
sharedInstance = [self new];
|
||||
});
|
||||
return sharedInstance;
|
||||
}
|
||||
@@ -32,12 +31,12 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)mountInView:(UIView *)view withFrame:(CGRect)frame {
|
||||
- (void)mountInView:(UIView*)view withFrame:(CGRect)frame {
|
||||
[CATransaction begin];
|
||||
[CATransaction setValue:(id)kCFBooleanTrue
|
||||
forKey:kCATransactionDisableActions];
|
||||
_overlayLayer.frame = frame;
|
||||
[view.layer addSublayer: _overlayLayer];
|
||||
[view.layer addSublayer:_overlayLayer];
|
||||
[CATransaction commit];
|
||||
}
|
||||
|
||||
@@ -46,7 +45,10 @@
|
||||
}
|
||||
|
||||
+ (UIColor*)overlayColor {
|
||||
return [UIColor colorWithRed:136.0 / 255.0 green:117.0 / 255.0 blue:197.0 / 255.0 alpha:0.6];
|
||||
return [UIColor colorWithRed:136.0 / 255.0
|
||||
green:117.0 / 255.0
|
||||
blue:197.0 / 255.0
|
||||
alpha:0.6];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user