Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13809)

Issue 40081: Provide constant values for field and extension numbers, with unit tests.

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by mdpoole
Modified:
15 years ago
Reviewers:
kenton
Base URL:
http://protobuf.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 13

Patch Set 2 : Provide constant values for field and extension numbers, with unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -8 lines) Patch
M java/src/test/java/com/google/protobuf/GeneratedMessageTest.java View 1 1 chunk +27 lines, -0 lines 0 comments Download
M python/google/protobuf/internal/reflection_test.py View 1 1 chunk +41 lines, -0 lines 0 comments Download
M python/google/protobuf/reflection.py View 1 3 chunks +12 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/cpp/cpp_extension.cc View 1 2 chunks +20 lines, -8 lines 0 comments Download
M src/google/protobuf/compiler/cpp/cpp_helpers.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/cpp/cpp_helpers.cc View 1 2 chunks +30 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/cpp/cpp_message.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/java/java_extension.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/java/java_helpers.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/java/java_helpers.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/java/java_message.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/google/protobuf/compiler/python/python_generator.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/google/protobuf/descriptor.pb.h View 1 49 chunks +62 lines, -0 lines 0 comments Download
M src/google/protobuf/descriptor.pb.cc View 1 18 chunks +186 lines, -0 lines 0 comments Download
M src/google/protobuf/message_unittest.cc View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 7
mdpoole
15 years ago (2009-04-14 01:53:49 UTC) #1
kenton
Mostly looks good. Can you address the comments below and upload a new patch? Thanks ...
15 years ago (2009-04-16 23:08:00 UTC) #2
mdpoole
Five out of six done. The last involves questions on my part about patch management ...
15 years ago (2009-04-17 01:03:45 UTC) #3
mdpoole
http://codereview.appspot.com/40081/diff/1/15 File src/google/protobuf/compiler/cpp/cpp_enum_field.cc (right): http://codereview.appspot.com/40081/diff/1/15#newcode108 Line 108: "const int $classname$::$constant_name$;\n"); On 2009/04/17 01:03:45, mdpoole wrote: ...
15 years ago (2009-04-17 02:53:38 UTC) #4
mdpoole
15 years ago (2009-04-17 04:13:05 UTC) #5
mdpoole
I'll have to remember to explicitly specify a message file with upload.py. It didn't prompt ...
15 years ago (2009-04-17 04:16:55 UTC) #6
kenton
15 years ago (2009-04-18 00:02:24 UTC) #7
I made one small change before submitting:  I grouped all of the field number
declarations for each message together in the .pb.cc file so that they could
have a single #ifdef _MSC_VER around them.

Thanks again for doing this.

Committed as rev 109.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b