forked from BigfootDev/flatbuffers
* 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>
11 lines
271 B
Protocol Buffer
11 lines
271 B
Protocol Buffer
// 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;
|
|
}
|