aboutsummaryrefslogtreecommitdiffstats
path: root/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2015-01-15 22:48:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-15 22:48:58 +0000
commit77a6b2f4cdd580d57630f079db1d908d7fd90a54 (patch)
tree586f7d5e9a7e05af45d0e821188097c0faa96219 /src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
parentc7c25812eb19d080087b71e08bfe35aff9f21433 (diff)
parenta3b2a6da25a76f17c73d31def3952feb0fd2296e (diff)
downloadexternal_protobuf-77a6b2f4cdd580d57630f079db1d908d7fd90a54.zip
external_protobuf-77a6b2f4cdd580d57630f079db1d908d7fd90a54.tar.gz
external_protobuf-77a6b2f4cdd580d57630f079db1d908d7fd90a54.tar.bz2
Merge "Update protobuf library from 2.3 to 2.6."
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto')
-rw-r--r--src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto b/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
index 79971a9..8b9ff5a 100644
--- a/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
+++ b/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto
@@ -36,6 +36,10 @@
// though the same identifiers are used internally by the C++ code generator.
+// Some generic_services option(s) added automatically.
+// See: http://go/proto2-generic-services-default
+option cc_generic_services = true; // auto-added
+
// We don't put this in a package within proto2 because we need to make sure
// that the generated code doesn't depend on being in the proto2 namespace.
package protobuf_unittest;
@@ -94,14 +98,33 @@ message TestConflictingSymbolNames {
// Some keywords.
optional uint32 int = 30;
optional uint32 friend = 31;
+ optional uint32 class = 37;
// The generator used to #define a macro called "DO" inside the .cc file.
message DO {}
optional DO do = 32;
+ // Some template parameter names for extensions.
+ optional int32 field_type = 33;
+ optional bool is_packed = 34;
+
+ // test conflicting release_$name$. "length" and "do" field in this message
+ // must remain string or message fields to make the test valid.
+ optional string release_length = 35;
+ // A more extreme case, the field name "do" here is a keyword, which will be
+ // escaped to "do_" already. Test there is no conflict even with escaped field
+ // names.
+ optional DO release_do = 36;
+
extensions 1000 to max;
}
+message TestConflictingSymbolNamesExtension {
+ extend TestConflictingSymbolNames {
+ repeated int32 repeated_int32_ext = 20423638 [packed=true];
+ }
+}
+
message DummyMessage {}
service TestConflictingMethodNames {