Digging through the source code, there's a function 
called CppGenerator::Generate in 
src/google/protobuf/compiler/cpp/cpp_generator.cc that has the extensions. 
You could change there the .cc to .cpp. A patch to allow the extension 
would be nice, I guess. Not sure how straight-forward it'd be.

On Thursday, December 5, 2013 10:07:22 PM UTC, Anthony Glaser wrote:
> By default the protoc commands outputs a file with an extension of .pb.cc 
> from a file foo.proto with --cpp_out .  Is there a way to make the output 
> foo.pb.cpp from that same foo.proto instead of foo.pb.cc? I looked 
> through the configure file and didn't see a way to do it, googled around a 
> bit and came up empty there as well.
> If you could point me in the right direction where to look for this info I 
> would appreciate it greatly.
> Thank you for your help.

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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to