mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 01:14:13 +00:00
* Parsing from proto should keep field ID. (fixes #7645) * Fix failed tests * Fix windows warning * Improve attribute generation in proto to fbs * Check if id is used twice. fix Some clang-format problems * Test if fake id can solve the test problem * Validate proto file in proto -> fbs generation. * Fix error messages * Ignore id in union * Add keep proto id for legacy and check gap flag have been added. Reserved id will be checked. * Add needed flags * unit tests * fix fromat problem. fix comments and error messages. * clear * More unit tests * Fix windows build * Fix include problems * Fake commit to invoke rebuild * Fix buzel build * Fix some issues * Fix comments, fix return value and sort for android NDK * Fix return type * Break down big function * Place todo --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
10
tests/prototest/twice-id.proto
Normal file
10
tests/prototest/twice-id.proto
Normal file
@@ -0,0 +1,10 @@
|
||||
// Sample .proto file that we can not translate to the corresponding .fbs because it has used an id twice
|
||||
|
||||
option some_option = is_ignored;
|
||||
|
||||
package proto.test;
|
||||
|
||||
message ProtoMessage {
|
||||
optional sint32 e = 2;
|
||||
optional uint64 twice = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user