Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 550 by [email protected]: generated code has all fieldnames
lowercased
http://code.google.com/p/protobuf/issues/detail?id=550
What steps will reproduce the problem?
1. Compile a proto file with the following type of message
message Foo {
required float Bar = 1;
}
What is the expected output?
A .h and .cc file that have accessors like:
...
// required float Bar = 1;
inline bool has_Bar() const;
...
What do you see instead?
...
// required float Bar = 1;
inline bool has_bar() const;
...
Notice the difference in capitalization: has_Bar() is generated instead of
has_Bar().
What version of the product are you using? On what operating system?
$ protoc --version
libprotoc 2.5.0
$ uname -a
Linux airwolf 3.10.9-gentoo #1 SMP PREEMPT Wed Aug 21 16:24:04 PDT 2013
x86_64 Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz GenuineIntel GNU/Linux
Please provide any additional information below.
It seems like all generated code has everything lowercase, but the
capitalization in the comments is preserved.
The attached .h and .cc files where generated with the following command:
$ protoc -I=. --cpp_out=. ./sample.proto
Attachments:
sample.proto 42 bytes
sample.pb.h 4.2 KB
sample.pb.cc 8.2 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.