- Jan 22, 2018
-
-
Wouter van Oortmerssen authored
Change-Id: Ic4f49e94c67ba23f07e5ba7e87ca94e8db5d5906 Tested: on Linux.
-
- Jan 18, 2018
-
-
Wouter van Oortmerssen authored
Change-Id: I4db7f032440c00d31c7434975b8a3f17c29d74b9 Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: Ia098126c92ea6f8abe94561bd9c09b29ac8f61f5 Context: https://github.com/google/flatbuffers/issues/4591 Tested: on Linux.
-
- Jan 05, 2018
-
-
brianhall77 authored
Avoids the following compile error when char is unsigned: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-unsigned-zero-compare]
-
- Dec 21, 2017
-
-
Wouter van Oortmerssen authored
Also added missing generated files. Change-Id: Ifd22a643a08e3f2edfce92812ed57b87fc0e1875
-
Yuri Finkelstein authored
* grpc bindings generator for Java and a few minor supporting changes in improvements * restored formatting before my previous changes for ease of review * Fixed grpc java code generation bug resulting in duplicate extractor declarations in case the same is used in more than a single RPC method
-
- Dec 04, 2017
-
-
Bastien Brunnenstein authored
-
- Dec 01, 2017
-
-
rmawatson authored
added "native_custom_alloc" attribute to tables/structs, eg. table parent_table( native_custom_alloc:"custom_alloc_name" ) { ... } with a custom allocator defined as template <typename T> class custom_alloc_name : public std::allocator<T> { public: typedef T* pointer; template <class U> struct rebind { typedef custom_alloc_name<U> other; }; pointer allocate(const std::size_t n) { return ....; } void deallocate(T* ptr, std::size_t n) { ... } custom_alloc_name() throw() {} template <class U> custom_alloc_name(const custom_alloc_name<U>&) throw() {} }; };
-
- Oct 06, 2017
-
-
Wouter van Oortmerssen authored
- 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.
-
- Sep 22, 2017
-
-
Wouter van Oortmerssen authored
This prevented any keywords showing up as JSON field names, for example. Change-Id: Ie9d0cada96778e06016ca02ca96d052410a37038 Tested: on Linux.
-
- Aug 24, 2017
-
-
Wouter van Oortmerssen authored
A Namespace object is now guaranteed unique. This cleaned up some old workarounds and latent bugs. Change-Id: Ic3f12d89947871b03b2c449ba51b3186f953adde Tested: on Linux. Bug: 21336857
-
Wouter van Oortmerssen authored
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.
-
- Aug 14, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: Idb607360123d12c73dd1e045305007120b12131b Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: I470143411e4ce6322e018a27bcc9cd40c15d9bf1 Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: I9378e375901f8a883eaeb2182955d690c358ed4b Tested: on Linux.
-
- Aug 11, 2017
-
-
Kamil Rojewski authored
* 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
-
Kamil Rojewski authored
* 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
-
- Aug 10, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: Ie5a3bb5a3643cd48e1cc75fe170a7b8a7c2cc8ed Tested: on Linux.
-
- Aug 04, 2017
-
-
rouzier authored
* Add support for boolean types in flexbuffers * Simplify casting number <=> boolean * Added comments for tests * Add proper support for Booleans * Bad rebase * No special case for strings * Removed unused test * Simplify logic
-
- Aug 02, 2017
-
-
MikkelFJ authored
* Add type aliases * Add generated code * Rebase master
-
- Jul 28, 2017
-
-
Christian Helmich authored
* added bool for nested_flatbuffer setting bool flag nested_flatbuffer according to attributes setting nested type * added JSON serialization for nested flatbuffers * simplified lookup of nested_flatbuffer StructDef * added nested_flatbuffer parsing workound relying on flexbuffers * moved nested flatbuffer parsing into its own function for clarity removed flexbuffers workound to simplify and speed up nested_flatbuffer parsing added support for 'legacy' nested_flatbuffers, ubyte arrays * inlined functions for nested parser init/clean since only used once * whitespace formatting * changed type of FieldDef.nested_flatbuffer from bool to StructDef* removed subsequent type lookups * removed copies of unrequired data when initializing nested parser * applied changes requested by reviewer * removed superfluous lookup of nested_flatbuffer field attributes * renamed camelCased variables to snake_case
-
- Jul 20, 2017
-
-
Stewart Miles authored
* Added internal - limited - implementation of flatbuffers::unique_ptr for STLs that don't ship with std::unique_ptr. In C++11 and beyond this is just an alias for std::unique_ptr. * Aliased used type traits structs is_scalar is_floating_point is_unsigned into flatbuffers namespace so they can be replaced in C++98 implementations. Right now these point at stlport's TR1 implementations. * Wrapped vector::data() in vector_data(). * Wrapped vector::emplace_back() in vector_emplace_back(). * Wrapper string::back() in string_back(). * Added variants of FlatBufferBuilder::CreateVector() and FlatBufferBuilder::CreateVectorOfStructs() that allow the use of plain function pointers. Generated code has also been modified to use plain functions to build objects rather than std::function() so all generated code will work in C++98 applications. * Added flexbuffers::Builder::Vector(), flexbuffers::Builder::TypedVector() and flexbuffers::Builder::Map() methods that allow the use of plain function pointers. * Changed Parser to internally use plain function pointers when parsing table and vector delimiters. * Added specializations of NumToString() for 64-bit types that aren't supported by stringstream in stlport. * Overloaded numeric_limits for 64-bit types not supported by stlport. * Replaced build_apk.sh (which was broken by deprecation of the "android" tool in the Android SDK) with build.gradle and the appropriate gradle wrapper to build an APK. * Switched Android build to build against all STL variants. * Updated travis configuration to build Android test and sample. Tested: * Verified all tests continue to work on Linux, OSX and Android. * Verified Travis build is green. Change-Id: I9e634363793f85b9f141d21454b10686020a2065
-
- Jul 19, 2017
-
-
schoetbi authored
* idl_parser.cpp ignores $schema in input json #4381 * idl_parser.cpp: Fixed ci error signed unsigned comparison * idl_parser.cpp: replaced case insensitive search for $schema with case sensitive search * idl_parser.cpp: Expecting a string constant after $schema #4382
-
- Jun 26, 2017
-
-
Robbie McElrath authored
-
- Jun 16, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: I955b4b3eed27f26773d7dc0acceff13c88d1333d Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: I48d41a240c8bf362b1f931f20a3ed9ae64f2d295
-
- Jun 12, 2017
-
-
Wouter van Oortmerssen authored
FlexBuffer parser is just 40 lines of code (on top of existing parser!). Change-Id: Idebebadafb661ca5333f5621139031f6df3c3e1a Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: I918b66eb5646d035e3aae675f745802eb54b03ea
-
- Jun 07, 2017
-
-
Guillaume Giraud authored
* Extended json parsing capability: add support for parsing nested lists and top level lists * Stylistic conformance with surrounding code + generalized comments * More code tidy-up for stylistic conformance with surrounding code * Blank lines * Reverted changes related to top-level list parsing * Styling: newline before else * Taking out ProcessTableFields which is no longer needed as the top level list change was reverted.
-
- Jun 02, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: I4b5d822cc4eda975949d1b7cf33674c5bbf9d4b1 Tested: on Linux.
-
Pavel Kalinnikov authored
* Track included files in PATH-agnostic way. Use full paths as keys in the map of included files. Store logical include path as a value, in order to put it to the generated file. * Fix tests by accepting null |include_filename|. * Fix self-includes code generators.
-
- May 24, 2017
-
-
Wouter van Oortmerssen authored
Changing to keep include prefixes had two side effects: the main file being parsed wasn't filtered out anymore, and include directory paths would be added to the path in the include statement. Also moved the include_test*.fbs files to sub directories so we can actually test the handling of -I etc. tested: on Linux. Change-Id: Ibae095cea7ab0cccbac15cfb5171719f6b5cad8c
-
- May 19, 2017
-
-
Wouter van Oortmerssen authored
There were several possible bugs involving paths not being recognized as being the same on Windows. Rather than trying to ensure all code deals with / and \ correctly, paths now get transformed to / on input, fixing all current and future such bugs. Tested: on OS X.
-
- May 18, 2017
-
-
sfariv authored
* added check for presence of required fields. * updates to resolve Travis CI build error. * fixes for resolving appveyor build errors. * fixes for resolving appveyor build errors. * fixes for resolving appveyor build errors. * updates per aardappel's comments. * updated a variable's name. * updates per aardappel's comments.
-
- May 11, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: I481afcde6a554d1cad519ff95acac7f38a7f4ee5 Tested: on Linux.
-
- Apr 19, 2017
-
-
Dmitry Ermolov authored
-
- Apr 18, 2017
-
-
Wouter van Oortmerssen authored
Change-Id: Iae389c6dc9776058b39f4017d30efbf9580aced1 Tested: on Linux.
-
- Apr 17, 2017
-
-
Jason Stubbs authored
* fix bounds checking on integer parsing the previous code was allowing 255 for int8_t, similar for int16_t and int32_t, and even negative values for unsignd types. this patch fixes bounds checking for 8-bit, 16-bit and 32-bit types. testing for both acceptable values and unacceptable values at the boundaries are also improved. bounds checking on 64-bit types isn't addressed by this patch. * fix 'unary minus operator applied to unsigned type, result still unsigned' * fix & placement
-
- Apr 13, 2017
-
-
Wouter van Oortmerssen authored
(C++ only for now). Also fixed vector of union support in the object API. Bug: 36902939 Change-Id: I935f4cc2c303a4728e26c7916a8ec0adcd6f84cb Tested: on Linux.
-
- Mar 10, 2017
-
-
Louis-Paul CORDIER authored
* NoError was returning on DoParse method when file was empty. * change NoError message in DoParse.
-