mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 06:44: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/use-reserved-id.proto
Normal file
10
tests/prototest/use-reserved-id.proto
Normal file
@@ -0,0 +1,10 @@
|
||||
// Sample .proto file that we can not translate to the corresponding .fbs because it has used ids from reserved ids.
|
||||
|
||||
option some_option = is_ignored;
|
||||
|
||||
package proto.test;
|
||||
|
||||
message ProtoMessage {
|
||||
reserved 200, 9 to 11, 1500;
|
||||
optional sint32 reserved_id_usage = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user