Skip to content

Commit 26cc1ac

Browse files
authored
Reformat the repo (#3063)
For some reason, style.sh is doing stuff to code that has previously passed the style.sh check.
1 parent 11e3aea commit 26cc1ac

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

Firestore/core/src/firebase/firestore/model/field_value.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ class DoubleValue : public NumberValue<Type::Double, double> {
141141
using NumberValue<Type::Double, double>::NumberValue;
142142
};
143143

144-
double
145-
Double(const BaseValue& rep) {
144+
double Double(const BaseValue& rep) {
146145
return Cast<DoubleValue>(rep).value();
147146
}
148147

GoogleDataTransport/GDTLibrary/GDTPlatform.m

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@
1818

1919
const GDTBackgroundIdentifier GDTBackgroundIdentifierInvalid = 0;
2020

21-
NSString * const kGDTApplicationDidEnterBackgroundNotification = @"GDTApplicationDidEnterBackgroundNotification";
21+
NSString *const kGDTApplicationDidEnterBackgroundNotification =
22+
@"GDTApplicationDidEnterBackgroundNotification";
2223

23-
NSString * const kGDTApplicationWillEnterForegroundNotification = @"GDTApplicationWillEnterForegroundNotification";
24+
NSString *const kGDTApplicationWillEnterForegroundNotification =
25+
@"GDTApplicationWillEnterForegroundNotification";
2426

25-
NSString * const kGDTApplicationWillTerminateNotification = @"GDTApplicationWillTerminateNotification";
27+
NSString *const kGDTApplicationWillTerminateNotification =
28+
@"GDTApplicationWillTerminateNotification";
2629

2730
BOOL GDTReachabilityFlagsContainWWAN(SCNetworkReachabilityFlags flags) {
2831
#if TARGET_OS_IOS
2932
return (flags & kSCNetworkReachabilityFlagsIsWWAN) == kSCNetworkReachabilityFlagsIsWWAN;
3033
#else
3134
return NO;
32-
#endif // TARGET_OS_IOS
35+
#endif // TARGET_OS_IOS
3336
}
3437

3538
@implementation GDTApplication
@@ -76,24 +79,23 @@ - (instancetype)init {
7679
selector:@selector(macOSApplicationWillTerminate:)
7780
name:NSApplicationWillTerminateNotification
7881
object:nil];
79-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
82+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
8083
}
8184
return self;
8285
}
8386

84-
8587
- (GDTBackgroundIdentifier)beginBackgroundTaskWithExpirationHandler:(void (^)(void))handler {
8688
#if TARGET_OS_IOS || TARGET_OS_TVOS
8789
return [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:handler];
8890
#else
8991
return GDTBackgroundIdentifierInvalid;
90-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
92+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
9193
}
9294

9395
- (void)endBackgroundTask:(GDTBackgroundIdentifier)bgID {
9496
#if TARGET_OS_IOS || TARGET_OS_TVOS
9597
[[UIApplication sharedApplication] endBackgroundTask:bgID];
96-
#endif //TARGET_OS_IOS || TARGET_OS_TVOS
98+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
9799
}
98100

99101
#pragma mark - UIApplicationDelegate
@@ -113,7 +115,7 @@ - (void)iOSApplicationWillTerminate:(NSNotification *)notif {
113115
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter];
114116
[notifCenter postNotificationName:kGDTApplicationWillTerminateNotification object:nil];
115117
}
116-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
118+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
117119

118120
#pragma mark - NSApplicationDelegate
119121

@@ -122,6 +124,6 @@ - (void)macOSApplicationWillTerminate:(NSNotification *)notif {
122124
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter];
123125
[notifCenter postNotificationName:kGDTApplicationWillTerminateNotification object:nil];
124126
}
125-
#endif // TARGET_OS_OSX
127+
#endif // TARGET_OS_OSX
126128

127129
@end

GoogleDataTransport/GDTLibrary/Public/GDTPlatform.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
#import <UIKit/UIKit.h>
2222
#elif TARGET_OS_OSX
2323
#import <AppKit/AppKit.h>
24-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
24+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
2525

2626
NS_ASSUME_NONNULL_BEGIN
2727

2828
/** A notification sent out if the app is backgrounding. */
29-
FOUNDATION_EXPORT NSString * const kGDTApplicationDidEnterBackgroundNotification;
29+
FOUNDATION_EXPORT NSString *const kGDTApplicationDidEnterBackgroundNotification;
3030

3131
/** A notification sent out if the app is foregrounding. */
32-
FOUNDATION_EXPORT NSString * const kGDTApplicationWillEnterForegroundNotification;
32+
FOUNDATION_EXPORT NSString *const kGDTApplicationWillEnterForegroundNotification;
3333

3434
/** A notification sent out if the app is terminating. */
35-
FOUNDATION_EXPORT NSString * const kGDTApplicationWillTerminateNotification;
35+
FOUNDATION_EXPORT NSString *const kGDTApplicationWillTerminateNotification;
3636

3737
/** Compares flags with the WWAN reachability flag, if available, and returns YES if present.
3838
*
@@ -54,7 +54,7 @@ FOUNDATION_EXPORT const GDTBackgroundIdentifier GDTBackgroundIdentifierInvalid;
5454
@protocol GDTApplicationDelegate <NSApplicationDelegate>
5555
#else
5656
@protocol GDTApplicationDelegate <NSObject>
57-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
57+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
5858

5959
@end
6060

@@ -73,7 +73,8 @@ FOUNDATION_EXPORT const GDTBackgroundIdentifier GDTBackgroundIdentifierInvalid;
7373
* @return An identifier for the background task, or GDTBackgroundIdentifierInvalid if one couldn't
7474
* be created.
7575
*/
76-
- (GDTBackgroundIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^ __nullable)(void))handler;
76+
- (GDTBackgroundIdentifier)beginBackgroundTaskWithExpirationHandler:
77+
(void (^__nullable)(void))handler;
7778

7879
/** Ends the background task if the identifier is valid.
7980
*

GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTNanopbHelpers.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#import <UIKit/UIKit.h>
2121
#elif TARGET_OS_OSX
2222
#import <AppKit/AppKit.h>
23-
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
23+
#endif // TARGET_OS_IOS || TARGET_OS_TVOS
2424

2525
#import <nanopb/pb.h>
2626
#import <nanopb/pb_decode.h>

GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTUploader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
#import "GDTCCTLibrary/Private/GDTCCTUploader.h"
1818

19-
#import <GoogleDataTransport/GDTRegistrar.h>
2019
#import <GoogleDataTransport/GDTPlatform.h>
20+
#import <GoogleDataTransport/GDTRegistrar.h>
2121

2222
#import <nanopb/pb.h>
2323
#import <nanopb/pb_decode.h>

0 commit comments

Comments
 (0)