summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-10-16Nullable java (#4455)Yonggang Li5-11/+28
* add _Nullable Support for C++ interface * generate @Nullable for Java generated code
2017-10-13Merge pull request #4459 from stewartmiles/masterStewart Miles2-12/+20
Report a build failure when any Android build fails.
2017-10-13Report a build failure when any Android build fails.Stewart Miles1-1/+1
The travis script was only failing if the last Android build fails. This changes the script to report a failure if any of the Android projects fail to build.
2017-10-13Fixed Android build failure caused by use of C++11 limits.Stewart Miles1-11/+19
f2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e caused Android builds to fail. This switches limit constants to use limits templates in stl_emulation.h.
2017-10-13Merge pull request #4458 from a-maurice/masterStewart Miles3-3/+3
Use flatbuffer unique_ptr instead of std's.
2017-10-13Use flatbuffer unique_ptr instead of std's.Anthony3-3/+3
Stlport does not have std unique_ptr, so using the one provided by flatbuffers. Also fixing a problem with the flatbuffer unique_ptr, and a test.
2017-10-09Add new flatbuffer_go_library to generate Go library for flatbuffersWouter van Oortmerssen3-4/+37
This CL also introduces the following changes to allow the generation of the Go library for flatbuffers: - add support for --gen-onefile for Go to simplify the build rule (mapping each input .fbs to a single separate .go file) - add a new --go-import flag to override the default import line (currently github.com/google/flatbuffers/go) - add new go_library in BUILD for flatbuffer (for files in flatbuffers/go) (mirrored from cr/171126159) Change-Id: I83e705a9a9d9544837af0baf9366ec37757799aa
2017-10-09Spelling error in C# and Java documentation (#4454)Brian Chavez1-1/+1
2017-10-09_Nullable cpp interface (#4451)Yonggang Li3-5/+23
* add _Nullable Support for C++ interface * add _Nullable Support for C++ interface
2017-10-06Improved .proto conversion.Wouter van Oortmerssen6-149/+268
- Allowed enums to be declared before use. - Generalized parsing of `required`. - Reworked escaping of namespaces. - Escaping field names that are C++ keywords. - Many smaller fixes. Change-Id: Ie580de7b70dc208f676f4f71bb0d061808648b8d Tested: on Linux.
2017-10-06[C++] Add explicit keyword on generated constructors for Builder structs (#4452)Aaron7-25/+25
* Add explicit keyword on C++ generated constructors for Builder structs * Add missing generated code for review
2017-10-06Python: CreateByteVector function in builder. (#4453)Robert2-0/+39
2017-10-05Fix issue #4389, if field is ommitted the return type is the same for… (#4444)Dariusz Ostolski4-4/+4
* Fix issue #4389, if field is ommitted the return type is the same for python generator * Fix issue #4389, bytes is returned when field is omitted * Fix issue #4389, added generated python code after generator modification
2017-10-02Add template version for As method. (#4443)Louis-Paul CORDIER2-0/+34
* Add template version for As method. * Fix compilation error on Linux. * Fix linux issue (2). * Linux fix (3) * Add few tests.
2017-09-25Fixed TypeTable function not being inline.Wouter van Oortmerssen8-60/+60
Change-Id: Id335980daf909e885ed26a21b64623b78d01fb49 Tested: on OS X.
2017-09-22Made the parser not have any hard-coded keywords.Wouter van Oortmerssen8-217/+154
This prevented any keywords showing up as JSON field names, for example. Change-Id: Ie9d0cada96778e06016ca02ca96d052410a37038 Tested: on Linux.
2017-09-22Added support for mini-reflection tables.Wouter van Oortmerssen17-27/+1340
Change-Id: I83453d074685fa57bbf1c7c87b1d9392ce972085 Tested: on Linux.
2017-09-21Add constant accessors to C++ unions (#4433)endorph-soft5-3/+54
* Add constant accessors to C++ unions * Remove redundant const pointer return type * Update generate_code.bat to reflect generate_code.sh * Add updated generated files * Remove extra space from generated code * Update generated files * Change directory back to tests after generating code
2017-09-21Fix build with clang on big-endian targets (#4440)Khem Raj2-32/+33
* flatbuffers: Move EndianSwap template to flatbuffers/base.h Clang complains call to function 'EndianSwap' that is neither visible in the template definition nor found by argument-dependent lookup return EndianSwap(t); This seems to be due to limitation of two-phase lookup of dependent names in template definitions Its not being found using associated namespaces therefore it has to be made visible at the template definition site as well Signed-off-by: Khem Raj <raj.khem@gmail.com> * use __builtin_bswap16 when building with clang clang pretends to be gcc 4.2.0 and therefore the code does not use __builtin_bswap16 but tries to synthesize it Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-09-14idl_gen_json_schema.cpp: Fixed detection of enum types (#4438)schoetbi1-1/+1
2017-09-14[C++] Fix DetachedBuffer move assignment lifetime (#4437)Lukas Bergdoll1-19/+34
* Fix DetachedBuffer move assignment lifetime DetachedBuffer move assignment now destroys it's own content, rather than waiting for the destructor of other. See more under #4435 Add missing function return type * Rename empty_assign to reset Reset after destroy reset() now operates on itself
2017-09-12Fixed .proto not being accepted as schema file.Wouter van Oortmerssen1-1/+2
Change-Id: I1ccd52a847930fa636d24f9490d57577b8775d08
2017-09-07Forgot to bump flatc version to 1.7.1Wouter van Oortmerssen1-1/+1
Change-Id: I480a08f445858bce3d0336c2b22da30d64f90012
2017-09-07Update doc (#4427)rouzier1-1/+1
2017-08-31Every type gets additionalProperties set to "false" (#4424)schoetbi3-18/+29
#4423
2017-08-31C++ Customise prefix/suffix of object API [Issue #4419] (#4422)endorph-soft3-31/+46
* Allow prefix/suffix of C++ Object API classes to be customised * Address review comments
2017-08-25Updated C# test project.Wouter van Oortmerssen1-1/+4
2017-08-25Fixed VS memory tracking leaking into user codeWouter van Oortmerssen2-3/+6
2017-08-24Disabled numpy test in appveyor due to timeout.Wouter van Oortmerssen1-3/+5
It pulls in a LOT of dependencies, this will need to be done better. Change-Id: Ib27effead194f6836facca01e9454a6037ad837a
2017-08-24Cleaned up namespace handling.Wouter van Oortmerssen25-65/+553
A Namespace object is now guaranteed unique. This cleaned up some old workarounds and latent bugs. Change-Id: Ic3f12d89947871b03b2c449ba51b3186f953adde Tested: on Linux. Bug: 21336857
2017-08-24Trimmed vtables of trailing zeroes.Wouter van Oortmerssen25-62/+129
This is something the format supports, but none of the builders were doing. Can save 10-20% on FlatBuffer binary size! Also fixed the Go tests. Change-Id: I616c56ce9bbcfcaee23aa24f0532fcb60b6a8c75 Tested: on Linux.
2017-08-17Fix use of min and max when Windows.h is imported (#4411)Younguk Kim2-7/+7
2017-08-14Noted that benchmarks are for C++Wouter van Oortmerssen1-1/+1
Change-Id: I12fbba7ffd2db47502a05eb06cedab49fd99c366
2017-08-14Explained GetRoot<Monster> vs GetMonster.Wouter van Oortmerssen1-0/+2
Change-Id: Ic302096c07551b5c1aff0b261a329c46964cf337
2017-08-14Fixed .proto -> .fbs translating type bytes incorrectly.Wouter van Oortmerssen2-12/+19
Change-Id: Idb607360123d12c73dd1e045305007120b12131b Tested: on Linux.
2017-08-14Further grammar.md fixes: union types, idents, string constants.Wouter van Oortmerssen1-4/+9
Change-Id: I51db0511c52c79f2b322a1fdef798b061941887b
2017-08-14Fixed up grammar.md with rpc's and new scalar types.Wouter van Oortmerssen1-3/+9
Change-Id: Ie2965f48810bf24cccf098b69a9d471583efc3bf
2017-08-14Missing FieldDef initializer.Wouter van Oortmerssen1-1/+2
Change-Id: I5ed1f77868e201d7231102a106e08f3376b6adcf
2017-08-14Fixed file_identifier/extension leaking from included file.Wouter van Oortmerssen1-1/+3
Change-Id: I470143411e4ce6322e018a27bcc9cd40c15d9bf1 Tested: on Linux.
2017-08-14Cleaned up test output.Wouter van Oortmerssen1-64/+68
Change-Id: I4bec0e728cc162aa3f19091a0d154124ffbccdff
2017-08-14Fixed root_type leaking in from included files.Wouter van Oortmerssen1-0/+3
Change-Id: I9378e375901f8a883eaeb2182955d690c358ed4b Tested: on Linux.
2017-08-14C++ Add new type vector_bool flexbuffers (#4410)rouzier3-5/+16
* Add new type vector_bool * Update stl_emulation.h Fix Is same typo * Update stl_emulation.h
2017-08-14Internal doc (#4409)rouzier1-6/+10
* Add information about flexbuffer bool and null encoding * Fix spelling errors * Fix encoding example for flexbuffer map
2017-08-11Added VS crtdbg memory leak trackingWouter van Oortmerssen2-14/+36
2017-08-11Added missing generated code.Wouter van Oortmerssen7-21/+2
Change-Id: I7201d6891f56094178656a76bf0f87cf36d12554
2017-08-11Vector of unions for TS/JS and PHP (#4404)Kamil Rojewski20-27/+1608
* Eclipse ignore * TypeScript support * Prefixing enums * Test results * Merged JS and TS generators * Fixed AppVeyor build problems * Fixed more AppVeyor build problems * Fixed more AppVeyor build problems * Changed TS flag to options struct * Storing options by value * Removed unneeded const * Re-export support for unions * Uint support * Casting bools to numbers for mutation * TS shell tests * Reverted generates js test file to original version * Backing up js tests and properly generating test data * Not importing flatbuffers for TS test generation * Not overwriting generated js for tests * AppVeyor test fixes * Generating the most strict TS code possible * Not returning null when creating vectors * Not returning null from struct contructors * Vector of unions for ts/js * Sanity check for languages * Indentation fix + output test files * Vectors of unions for php * Fixes to union vector handling + tests
2017-08-11Copying required field to union type vector (#4407)Kamil Rojewski1-0/+4
* Eclipse ignore * TypeScript support * Prefixing enums * Test results * Merged JS and TS generators * Fixed AppVeyor build problems * Fixed more AppVeyor build problems * Fixed more AppVeyor build problems * Changed TS flag to options struct * Storing options by value * Removed unneeded const * Re-export support for unions * Uint support * Casting bools to numbers for mutation * TS shell tests * Reverted generates js test file to original version * Backing up js tests and properly generating test data * Not importing flatbuffers for TS test generation * Not overwriting generated js for tests * AppVeyor test fixes * Generating the most strict TS code possible * Not returning null when creating vectors * Not returning null from struct contructors * Copying required field to union type vector * Removed unneccessary bool
2017-08-10Make flatc not silently skip schema files not ending in .fbsWouter van Oortmerssen1-2/+8
Change-Id: I58463b321703b2ef0dc3f3062633909b86eca1a9 Tested: on Linux.
2017-08-10Make it an error if a field has the same name as a table.Wouter van Oortmerssen2-2/+2
Change-Id: Ie5a3bb5a3643cd48e1cc75fe170a7b8a7c2cc8ed Tested: on Linux.
2017-08-10Forgot to update pom.xml in recent 1.7.1 release.Wouter van Oortmerssen1-1/+1
Change-Id: Ia6d6967546c0a2a5340a93e54c46d2630fff92fe