diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-08-24 17:29:05 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-08-26 13:54:00 -0400 |
commit | 2e66a61b540b7858c1cd1910c5efa58d72907b54 (patch) | |
tree | 09b476ab8025a28ead9a13c49de3dde994c42935 /src/google/protobuf/compiler/objectivec/objectivec_helpers.h | |
parent | b97a4a53cdd55be74c30badefeb132a091764f53 (diff) | |
download | protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.tar.gz protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.tar.bz2 protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.zip |
Support GenerateAll().
- Expect calls on GenerateAll() and not Generate().
- Parse the prefix validation file once, and then check all the files.
Diffstat (limited to 'src/google/protobuf/compiler/objectivec/objectivec_helpers.h')
-rw-r--r-- | src/google/protobuf/compiler/objectivec/objectivec_helpers.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_helpers.h b/src/google/protobuf/compiler/objectivec/objectivec_helpers.h index 344723a6..b05983df 100644 --- a/src/google/protobuf/compiler/objectivec/objectivec_helpers.h +++ b/src/google/protobuf/compiler/objectivec/objectivec_helpers.h @@ -185,12 +185,12 @@ string ProtobufFrameworkImportSymbol(const string& framework_name); // Checks if the file is one of the proto's bundled with the library. bool IsProtobufLibraryBundledProtoFile(const FileDescriptor* file); -// Checks the prefix for a given file and outputs any warnings needed, if -// there are flat out errors, then out_error is filled in and the result is -// false. -bool ValidateObjCClassPrefix(const FileDescriptor* file, - const Options& generation_options, - string* out_error); +// Checks the prefix for the given files and outputs any warnings as needed. If +// there are flat out errors, then out_error is filled in with the first error +// and the result is false. +bool ValidateObjCClassPrefixes(const vector<const FileDescriptor*>& files, + const Options& generation_options, + string* out_error); // Generate decode data needed for ObjC's GPBDecodeTextFormatName() to transform // the input into the expected output. |