diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-12-21 05:33:13 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-12-21 05:33:13 +0000 |
commit | 5c20ca1fccbf0b4d19f5823517fde2869101f921 (patch) | |
tree | 685f0147939a307b0ad8ba8716a308ea76e629b7 /src/google/protobuf/unittest.proto | |
parent | 334dfc21ec75f85b128c087faced416b64f44619 (diff) |
Escape C++ Trigraphs.
Diffstat (limited to 'src/google/protobuf/unittest.proto')
-rw-r--r-- | src/google/protobuf/unittest.proto | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/google/protobuf/unittest.proto b/src/google/protobuf/unittest.proto index de4425be..97ec6747 100644 --- a/src/google/protobuf/unittest.proto +++ b/src/google/protobuf/unittest.proto @@ -493,6 +493,13 @@ message TestExtremeDefaultValues { optional float inf_float = 17 [default = inf]; optional float neg_inf_float = 18 [default = -inf]; optional float nan_float = 19 [default = nan]; + + // Tests for C++ trigraphs. + // Trigraphs should be escaped in C++ generated files, but they should not be + // escaped for other languages. + // Note that in .proto file, "\?" is a valid way to escape ? in string + // literals. + optional string cpp_trigraph = 20 [default = "? \? ?? \?? \??? ??/ ?\?-"]; } message SparseEnumMessage { |