aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/objectivec/objectivec_file.cc
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2015-07-06 12:29:08 -0400
committerGravatar Thomas Van Lenten <thomasvl@google.com>2015-08-14 13:34:51 -0400
commit4e43931eaf897d719bc718d5baf1ab84444fdfee (patch)
tree275ae0622f1a867ecefc34db938c0f27102af039 /src/google/protobuf/compiler/objectivec/objectivec_file.cc
parentedaefac5d2221ab26b9988fb76c79760c6495fb8 (diff)
Add support for a file listing expected package to objc prefixes for validation.
- Add a env var to pass a set of expected prefixes for validation. - Report warnings/errors based on the expected prefixes vs. the data in the files compiled. - Use some helpers from common directory.
Diffstat (limited to 'src/google/protobuf/compiler/objectivec/objectivec_file.cc')
-rw-r--r--src/google/protobuf/compiler/objectivec/objectivec_file.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/objectivec/objectivec_file.cc b/src/google/protobuf/compiler/objectivec/objectivec_file.cc
index e60ae5a6..184a84a3 100644
--- a/src/google/protobuf/compiler/objectivec/objectivec_file.cc
+++ b/src/google/protobuf/compiler/objectivec/objectivec_file.cc
@@ -54,9 +54,6 @@ FileGenerator::FileGenerator(const FileDescriptor *file)
: file_(file),
root_class_name_(FileClassName(file)),
is_public_dep_(false) {
- // Validate the objc prefix.
- ValidateObjCClassPrefix(file_);
-
for (int i = 0; i < file_->enum_type_count(); i++) {
EnumGenerator *generator = new EnumGenerator(file_->enum_type(i));
enum_generators_.push_back(generator);