diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-12-08 10:14:11 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-12-08 12:12:50 -0500 |
commit | dad775b79895df5167cfbc2c78549b8417af1c01 (patch) | |
tree | 6a880f4c75e6ed88ebfa18c8122c81fe4ec757be /objectivec/Tests/GPBARCUnittestProtos.m | |
parent | c836ad4dc7db4adf4b42a30474037f712d4f6875 (diff) | |
download | protobuf-dad775b79895df5167cfbc2c78549b8417af1c01.tar.gz protobuf-dad775b79895df5167cfbc2c78549b8417af1c01.tar.bz2 protobuf-dad775b79895df5167cfbc2c78549b8417af1c01.zip |
Improve ObjC deprecated annotation support.
- Check the parent file options for deprecation when deciding to tag Messages
and Enums as deprecated.
- Within the generated source push/pop the warning for implementing deprecated
things around a deprecated class implementation.
- Annotate the methods generated for extension fields as deprecated.
- Add a testing .proto file that covers deprecated fields, messages, enums,
enum values and compile it into the unittests to confirm things compile
cleanly.
- Add a testing .proto file that uses the file level option to make everything
deprecated and compile it into the unittests to confirm things compile
cleanly.
Diffstat (limited to 'objectivec/Tests/GPBARCUnittestProtos.m')
-rw-r--r-- | objectivec/Tests/GPBARCUnittestProtos.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/objectivec/Tests/GPBARCUnittestProtos.m b/objectivec/Tests/GPBARCUnittestProtos.m index 28d2396c..29f6ccf6 100644 --- a/objectivec/Tests/GPBARCUnittestProtos.m +++ b/objectivec/Tests/GPBARCUnittestProtos.m @@ -42,6 +42,8 @@ #import "google/protobuf/Unittest.pbobjc.h" #import "google/protobuf/UnittestCustomOptions.pbobjc.h" #import "google/protobuf/UnittestCycle.pbobjc.h" +#import "google/protobuf/UnittestDeprecated.pbobjc.h" +#import "google/protobuf/UnittestDeprecatedFile.pbobjc.h" #import "google/protobuf/UnittestDropUnknownFields.pbobjc.h" #import "google/protobuf/UnittestEmbedOptimizeFor.pbobjc.h" #import "google/protobuf/UnittestEmpty.pbobjc.h" |