diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2015-06-16 16:45:14 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2015-06-16 17:04:50 -0400 |
commit | 8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2 (patch) | |
tree | 31b4561aae2a11b1a9b4b7010dc9df10c52a4d72 /objectivec/GPBWellKnownTypes.h | |
parent | 4cbb612299eaf8259db25f5dcda46022fbd1db54 (diff) | |
download | protobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.tar.gz protobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.tar.bz2 protobuf-8c88957ef375f3b739b6e72ea5c2fb71b12e1fc2.zip |
Add nonnil markup to ObjC library.
Add the clang annotations to the objc library and generated code to help with Swift bridging and compiler checks.
Diffstat (limited to 'objectivec/GPBWellKnownTypes.h')
-rw-r--r-- | objectivec/GPBWellKnownTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/objectivec/GPBWellKnownTypes.h b/objectivec/GPBWellKnownTypes.h index 321cdc3e..c98594a2 100644 --- a/objectivec/GPBWellKnownTypes.h +++ b/objectivec/GPBWellKnownTypes.h @@ -33,6 +33,8 @@ #import "google/protobuf/Timestamp.pbobjc.h" #import "google/protobuf/Duration.pbobjc.h" +NS_ASSUME_NONNULL_BEGIN + // Extension to GPBTimestamp to work with standard Foundation time/date types. @interface GPBTimestamp (GBPWellKnownTypes) @property(nonatomic, readwrite, strong) NSDate *date; @@ -46,3 +48,5 @@ @property(nonatomic, readwrite) NSTimeInterval timeIntervalSince1970; - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970; @end + +NS_ASSUME_NONNULL_END |