Protobufs: Added '--oneof-union' option. (#4647)
* Added '--oneof-union' option. Used with the .proto -> .fbs converter, will translate protobuff oneofs to flatbuffer unions. Updated proto test to check both methods of converting oneofs. * Added '--oneof-union' option. Used with the .proto -> .fbs converter, will translate protobuff oneofs to flatbuffer unions. Updated proto test to check both methods of converting oneofs. * FlatBuffers: Moved MakeCamel() into idl_parser.cpp Removes library dependency on Java/C# generator code.
Showing
- BUILD 1 addition, 0 deletionsBUILD
- include/flatbuffers/idl.h 5 additions, 0 deletionsinclude/flatbuffers/idl.h
- src/flatc.cpp 3 additions, 0 deletionssrc/flatc.cpp
- src/idl_gen_fbs.cpp 8 additions, 2 deletionssrc/idl_gen_fbs.cpp
- src/idl_gen_general.cpp 0 additions, 15 deletionssrc/idl_gen_general.cpp
- src/idl_parser.cpp 95 additions, 46 deletionssrc/idl_parser.cpp
- tests/prototest/test.golden 10 additions, 0 deletionstests/prototest/test.golden
- tests/prototest/test.proto 8 additions, 0 deletionstests/prototest/test.proto
- tests/prototest/test_union.golden 62 additions, 0 deletionstests/prototest/test_union.golden
- tests/test.cpp 19 additions, 0 deletionstests/test.cpp
Loading
Please register or sign in to comment