- 07 Jun, 2018 1 commit
-
-
Wouter van Oortmerssen authored
This function cannot work with any offset types (since offsets must always point forward) so this avoid possible mistakes. Change-Id: I1b3dfbefc8d40da630345b9b04f9aff4a990e8e5
-
- 04 Jun, 2018 1 commit
-
-
Vladimir Glavnyy authored
-
- 01 Jun, 2018 1 commit
-
-
Vladimir Glavnyy authored
-
- 31 May, 2018 6 commits
-
-
Christian Helmich authored
reason: TYPE_BOOL is a macro defined in some iOS build configurations.
-
Wouter van Oortmerssen authored
Change-Id: I956b27f37b11988e67d0403a596c0569eacbfc2a
-
Wouter van Oortmerssen authored
Change-Id: I79d9b2cddc61df5919bc4a93627fba2aa69e5d49 Tested: on Linux.
-
Steve Barman authored
-
Gautham B A authored
Fixed a typo in serialising the inventory for Orc.
-
Nathan Mitchell authored
* Add suppport for ES6 style exports Adds support for ECMAScript 6 module exports during Javascript generation. This is useful as many development projects are switching to this new standard and away from custom module solutions. By integrating support into flatbuffers, users do not need to perform additional post-processing of generated files in order to use flatbuffers output directly in their codebases. Reference to ECMAScript 6 modules: https://www.ecma-international.org/ecma-262/6.0/#sec-exports Changes: * Added `--es6-js-export` option to cli parser tool * Added conditional code to generate a ES6 style export line, replacing the normal NodeJS/RequireJS line. * Fixed missing export statements Added exports for definition and struct names that were not inside namespaces * Updated Compiler.md with new generator option Added entry to Compiler.md in docs for the `--es6-js-export` flag, including a brief description of the effects and usefulness.
-
- 18 May, 2018 4 commits
-
-
Wouter van Oortmerssen authored
This is to not need static variables, which could trip up users with destruction order problems. This potentially makes these operations slightly slower, but I think they're infrequent enough that this should not be noticable. Also there is one breaking API change, for a method that is not used by any code in FlatBuffers and is assumed to affect very few if any users. A namechange and comment ensures that those affected, if any, will not run into trouble silently. Change-Id: I16c1352d1dfc9092c816ddb7e353ed7f5f417444 Tested: on Linux.
-
Vitaly Bondar authored
-
Dan Field authored
* Add [Dart] support * fix enum vectors * Allow for opt out of string interning * fix comment style, make interning opt in * remove Offset<T>, prefer int * avoid creating unnecessary vtable objects * start work on tests - do not generate builder if struct has 0 fields - add int64 * support reading structs properly * correctly handle reading vectors of structs, dartfmt * support structs, fix unnecessary prepares * fix bool customizations * undo unintentional removal of file * docs updates, complete tutorial, bug fix for codegen * more documentation * Update docs, add to doxygen file * update package structure, add samples script/code * rearrange sample * Tests * Add readme for pub * cleanup package for pub * update docs for renamed file * remove custom matcher, use `closeTo` instead * remove unintentional file * remove unintended file checkin * use auto, move method, cleanup * refactor to ObjectBuilders, add Builders * Update tests, examples * Add files missing from previous commit * documentation and example updates * Update LICENSE, make dartanalyzer happy, fix minor bugs, get rid of duplicate files, publish script * fix sample for slightly different schema * Update pubspec.yaml
-
joligarson authored
Fix for the issue #4744: Ambiguous side-effect execution on vector_downward::make_space() method. C++ does not impose evaluation order on the two expressions on the right side of the assignment, so compiler can freely decide. As ensure_space() method can change the value of "cur_" variable, the result of the subtraction may be different depending on the evaluation order, which is ambiguous in C++. In order to make this code deterministic and correct, cur_ must be evaluated after ensure_space() is called.
-
- 14 May, 2018 3 commits
-
-
Tin Tvrtković authored
* Python: handle bool table fields properly. * Small refactor. * Use snake_case instead of camelCase. Use auto.
-
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 * Fix for strictPropertyInitialization * Fix for new aligned operator new for gcc >= 7.1 * Not generating imports/ns prefixes with --gen-all * TypeScript docs * Missing imports of enums * Missing TS links * Enabled vector of unions for java, since it seems to work * Added jitpack config * Added obj to vector of unions getter * Removed unneeded accessor * Bumped jdk version in pom.xml * Vector of unions support for c#
-
Keef Aragon authored
-
- 10 May, 2018 4 commits
-
-
Paul Reimer authored
Add define/ifdef blocks, alternate sprintf implementation via FLATBUFFERS_PREFER_PRINTF [C++] (#4700) * Add define/ifdef blocks for FLATBUFFERS_PREFER_PRINTF to avoid using std::*streams for idl_parser * Use string::size() as limit in snprintf * Refactored FLATBUFFERS_PREFER_PRINTF guarded feature into NumToStringImplWrapper around sprintf * Remove '.0' where not needed from IntToDigitCount * Remove leading dot from name in GetFullyQualifiedName when FLATBUFFERS_PREFER_PRINTF is enabled * Return string directly from conversion functions where possible when FLATBUFFERS_PREFER_PRINTF is enabled * Use string instead of stringstream for GetFullyQualifiedName * Revert removing leading dot from GetFullyQualifiedName, it does need to be there for parity with the stringstream implementation * Dot is single char in Namespace::GetFullyQualifiedName * Remove trailing (duplicate) null-byte from NumToStringImplWrapper when using FLATBUFFERS_PREFER_PRINTF. * Update preprocessor indenting (and use clang-format off/on) for FLATBUFFERS_PREFER_PRINTF * Reduce whitespace, unneeded braces in FLATBUFFERS_PREFER_PRINTF string width functions * Remove unneeded use of iostream from idl_parser.cpp, std::string is used instead * Tell snprintf to use the trailing null byte expected at the end of std::string buffer
-
Paul Reimer authored
* Add view() method on flatbuffers::String, to return a string_view type if support for std::string_view (or alternately std::experimental::string_view) is found * Move detection/definition of FLATBUFFERS_STRING_VIEW to base.h, use the macro (if it is defined) as the argument type for an overload of CreateString * Rename String::view() to String::string_view() and use the existing c_str() method for the data pointer * Add and explain minimum C++ standard version checks for FLATBUFFERS_STRING_VIEW implementations * Updated preprocessor indenting for FLATBUFFERS_STRING_VIEW * Convert FLATBUFFERS_STRING_VIEW macro to typedef in flatbuffers:: namespace, and boolean feature toggle macro FLATBUFFERS_HAS_STRING_VIEW * Prepend flatbuffers:: namespace to disambiguate flatbuffers::string_view typedef from String::string_view() * clang-format as-she-is-spoke for FLATBUFFERS_HAS_STRING_VIEW
-
Tin Tvrtković authored
[BREAKING CHANGE] Python: return None for missing strings.
-
Mike Mansell authored
@Nullable is only a compiler informational attribute. Removing for required fields improves compiler warnings but doesn't impact any running code.
-
- 07 May, 2018 2 commits
-
-
Paul Reimer authored
* Add --root-type option to flatc To select or override a root_type * Add help text from flatc --root-type to Compiler.md doc
-
Wouter van Oortmerssen authored
Change-Id: I7c9bb5406ae8df951afe12a008f0d071e0195bfa
-
- 03 May, 2018 3 commits
-
-
Vladimir Glavnyy authored
* Added support for the non-escaped print of utf-8 string. * EscapeString: the first invalid symbol resets print_natural_utf8 flag to false. * Move the test to ParseAndGenerateTextTest. Fixes. * Removed dependence between `natural_utf8` and `allow_non_utf8` flags.
-
iceboy authored
* Fix union escaping order. Fixes #4712 * style
-
iceboy authored
-
- 30 Apr, 2018 1 commit
-
-
husobee authored
* Addition of Go FinishWithFileIdentifier, allows for Go flatbuffer data to contain a file identifier * adding panic as per review if fileIdentifier does not match length, letting prep pad the file identifier * updated error message to not use fmt.Sprintf * using minalign for alignment for file identifier
-
- 27 Apr, 2018 1 commit
-
-
Tobias Oberstein authored
* include service in reflection data (fixes #4639) * changes from review * regenerated test data
-
- 23 Apr, 2018 1 commit
-
-
Mark Henderson authored
* Adding JS function to get the File Identifier * Update flatbuffers.js
-
- 16 Apr, 2018 1 commit
-
-
Vladimir Glavnyy authored
* The asserts replaced by FLATBUFFERS_ASSERT. Several asserts have converted to static_asserts. * Regenerate header monster generate_code.sh
-
- 06 Apr, 2018 2 commits
-
-
Sergey Avseyev authored
In file included from include/flatbuffers/flexbuffers.h:24, from src/idl_gen_text.cpp:20: include/flatbuffers/util.h: In function 'int flatbuffers::FromUTF8(const char**)': include/flatbuffers/util.h:324:45: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] if ((static_cast<const unsigned char>(**in) << len) & 0x80) return -1; // Bit after leading 1's must be 0. ^ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/flatbuffers_shared.dir/build.make:92: CMakeFiles/flatbuffers_shared.dir/src/idl_gen_text.cpp.o] Error 1
-
Vladimir Glavnyy authored
* User-declared attribute should be either identifier or string with the identifier. * Attribute can be identifier or string in metadata.
-
- 05 Apr, 2018 6 commits
-
-
Paul Reimer authored
Rename MANUALLY_ALIGNED_STRUCT to add FLATBUFFERS_ prefix in generated code within tests/. Via running `cd tests && sh generate_code.sh` (#4696)
-
Paul Reimer authored
* Rename STRUCT_END to add FLATBUFFERS_ prefix, now FLATBUFFERS_STRUCT_END. Via running `ag -l STRUCT_END | xargs rpl STRUCT_END FLATBUFFERS_STRUCT_END` * Rename MANUALLY_ALIGNED_STRUCT to add FLATBUFFERS_ prefix, now FLATBUFFERS_MANUALLY_ALIGNED_STRUCT. Via running `ag -l MANUALLY_ALIGNED_STRUCT | xargs rpl MANUALLY_ALIGNED_STRUCT FLATBUFFERS_MANUALLY_ALIGNED_STRUCT && cd tests && sh generate_code.sh` * Rename DEFINE_BITMASK_OPERATORS to add FLATBUFFERS_ prefix, now FLATBUFFERS_DEFINE_BITMASK_OPERATORS. Via running `ag -l DEFINE_BITMASK_OPERATORS | xargs rpl DEFINE_BITMASK_OPERATORS FLATBUFFERS_DEFINE_BITMASK_OPERATORS`
-
Wouter van Oortmerssen authored
Change-Id: I0b0ed43129c4d8fc88a177792df50adfeb52a1e3
-
Wouter van Oortmerssen authored
Change-Id: I59af6ca1825870461c0badc7e7a045b97befdc1a
-
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 * Fix for strictPropertyInitialization * Fix for new aligned operator new for gcc >= 7.1 * Not generating imports/ns prefixes with --gen-all * TypeScript docs * Missing imports of enums * Missing TS links
-
Juyeon Yoon authored
Fix #4650
-
- 02 Apr, 2018 1 commit
-
-
David Stephan authored
CreateMonster and MonsterBuilder examples fixed for C++
-
- 26 Mar, 2018 1 commit
-
-
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 * Fix for strictPropertyInitialization * Fix for new aligned operator new for gcc >= 7.1 * Not generating imports/ns prefixes with --gen-all * TypeScript docs * Missing imports of enums
-
- 23 Mar, 2018 1 commit
-
-
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 * Fix for strictPropertyInitialization * Fix for new aligned operator new for gcc >= 7.1 * Not generating imports/ns prefixes with --gen-all * TypeScript docs
-