aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/ProtoRPC
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-18 17:04:03 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-18 17:04:03 -0700
commit4264ea2b55f46c1904fc179fb0db7b733b8c3e4b (patch)
treef0894f19b96ae1d8b3c120646b7df47c016b22b7 /src/objective-c/ProtoRPC
parent6ae2ea643d89f7b2e7839f9016a61361ce92b5d5 (diff)
clang-format
Diffstat (limited to 'src/objective-c/ProtoRPC')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.h6
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m10
-rw-r--r--src/objective-c/ProtoRPC/ProtoService.h13
3 files changed, 16 insertions, 13 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h
index db1e8c6deb..f2ba513495 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.h
+++ b/src/objective-c/ProtoRPC/ProtoRPC.h
@@ -24,7 +24,7 @@
@class GPBMessage;
/** An object can implement this protocol to receive responses from server from a call. */
-@protocol GRPCProtoResponseHandler <NSObject>
+@protocol GRPCProtoResponseHandler<NSObject>
@optional
@@ -59,7 +59,7 @@
- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
++ (instancetype) new NS_UNAVAILABLE;
/**
* Users should not use this initializer directly. Call objects will be created, initialized, and
@@ -81,7 +81,7 @@
- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
++ (instancetype) new NS_UNAVAILABLE;
/**
* Users should not use this initializer directly. Call objects will be created, initialized, and
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m
index d3005e30a5..238faa3343 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.m
+++ b/src/objective-c/ProtoRPC/ProtoRPC.m
@@ -88,7 +88,9 @@
_callOptions = [callOptions copy];
_responseClass = responseClass;
if (@available(iOS 8.0, *)) {
- _dispatchQueue = dispatch_queue_create(NULL, dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_DEFAULT, -1));
+ _dispatchQueue = dispatch_queue_create(
+ NULL,
+ dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_DEFAULT, -1));
} else {
_dispatchQueue = dispatch_queue_create(nil, DISPATCH_QUEUE_SERIAL);
}
@@ -120,9 +122,9 @@
error:[NSError errorWithDomain:kGRPCErrorDomain
code:GRPCErrorCodeCancelled
userInfo:@{
- NSLocalizedDescriptionKey :
- @"Canceled by app"
- }]];
+ NSLocalizedDescriptionKey :
+ @"Canceled by app"
+ }]];
});
}
_handler = nil;
diff --git a/src/objective-c/ProtoRPC/ProtoService.h b/src/objective-c/ProtoRPC/ProtoService.h
index 2985c5cb2d..3a16ab2402 100644
--- a/src/objective-c/ProtoRPC/ProtoService.h
+++ b/src/objective-c/ProtoRPC/ProtoService.h
@@ -30,14 +30,15 @@
__attribute__((deprecated("Please use GRPCProtoService."))) @interface ProtoService
: NSObject
-- (instancetype)init NS_UNAVAILABLE;
+ -
+ (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
++ (instancetype) new NS_UNAVAILABLE;
- -
- (instancetype)initWithHost : (NSString *)host packageName
- : (NSString *)packageName serviceName : (NSString *)serviceName callOptions
- : (GRPCCallOptions *)callOptions NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithHost:(NSString *)host
+ packageName:(NSString *)packageName
+ serviceName:(NSString *)serviceName
+ callOptions:(GRPCCallOptions *)callOptions NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithHost:(NSString *)host
packageName:(NSString *)packageName