- 14 Feb, 2019 3 commits
-
-
Aleix Pol authored
If FLATBUFFERS_BUILD_FLATC and FLATBUFFERS_INSTALL are set, flatc should be installed regardless of the configuration.
-
Kamil Rojewski authored
-
Austin Schuh authored
rules_go was out of date. Update that. Also, a dependency monster_extra_cc_fbs snuck in. So, let's add that. Fixes: #5163
-
- 11 Feb, 2019 4 commits
-
-
Gabriel Nützi authored
* Add flag to make short names in JS/TS. * Synced all missing docs in Compiler.md <-> flatc.cpp. * Review changes.
-
Enrico Olivelli authored
Make ByteBufferFactory an abstract class in order to make FlatBuffers compatible with Java7. (#5155) Introduce a HeapByteBufferFactory singleton instance in order to reduce allocations. Clarify the usage of LITTLE_ENDIAN ByteBuffers in ByteBufferFactory.
-
iceboy authored
* Implement native_shared attribute for C++. Fixes #5141. See also #5145. * Refine comment in idl.h * Also refine docs * Revert "Also refine docs" This reverts commit 09dab7b45c56c2d17eac493203adc8caaa0df2cc. * Also refine docs again. * grumble
-
Wouter van Oortmerssen authored
Change-Id: Ibabc1456baf190eba191ebe0b81e3d73a4acc98f
-
- 08 Feb, 2019 1 commit
-
-
Wouter van Oortmerssen authored
This is to protect against cases where part of a project is compiled with or without this flag, making for very fragile and hard to find bugs, such as sizeof(Verifier) changing. Change-Id: I01c895cdc5b44f860e4b0b9c9613bff1983e2b9d See: https://bugs.chromium.org/p/chromium/issues/detail?id=929847
-
- 07 Feb, 2019 1 commit
-
-
Wouter van Oortmerssen authored
More detail: https://github.com/google/flatbuffers/projects/6#card-17401359 See also the .md changes in this commit. Change-Id: Idfa68b2fd3bdb19979833737d3a3cf83ec1d6775
-
- 05 Feb, 2019 1 commit
-
-
Charlie Harrison authored
* Removing 'using namespace' usage in test_builder * Fix GRPC tests
-
- 04 Feb, 2019 2 commits
-
-
Travis Staley authored
Changing array to be an associative array so that the Name function can work with non-sequential enums as well as those beginning at something other than zero. (#5151) Also including the resulting changes in php files.
-
Jon Kunkee authored
With the introduction of Windows 10 on ARM (ARM64), code that assumes that Windows targets are always x86 or x86_64 targets needs to be updated. The hot function ReadUInt64 has been optimized in MSVC builds using the compiler intrinsic __movsb. Since this does not exist on ARM64 Windows, this change uses the pure C++ path that other platforms use instead.
-
- 29 Jan, 2019 1 commit
-
-
Henry Lee authored
Fix a typo in the static assert message in `make_unsigned` Support more specifications for `make_unsigned`
-
- 28 Jan, 2019 1 commit
-
-
Vladimir Glavnyy authored
- GCC: fixed broken `fallthrough` (checked with 7.3 and 8.2) - Clang: added `fallthrough` support - Clang: added `-Wimplicit-fallthrough` checking
-
- 24 Jan, 2019 5 commits
-
-
find authored
-
Vladimir Glavnyy authored
- enable FLATBUFFERS_ATTRIBUTE if C++17 or higher
-
Vladimir Glavnyy authored
-
jean-airoldie authored
* [Rust] Added global namespace imports * Documented the need for global imports * Added white_space params to GenNamespaceImports * Removed a \n from GenNamespaceImports
-
Henry Lee authored
* Add `const` keyword to the `operator-(const uoffset_t &)` function in `VectorIterator` * Support reverse iterator in Vector Introduced a new VectorReverseIterator type. We cannot directly use `std::reverse_iterator<VectorIterator>` because the signature of `operator*` and `operator->` in the VectorIterator class are not standard signatures. Also added `rbegin()`, `rend()`, `cbegin()`, `cend()`, `crbegin()` and `crend()` in the Vector class.
-
- 17 Jan, 2019 3 commits
-
-
Vlad Frolov authored
-
Vladimir Glavnyy authored
* Fix high certainty warnings from PVS-studio - Introduced FLATBUFFERS_ATTRIBUTE macro to use [[attribute]] if modern C++ compiler used * Update the note about __cplusplus usage in the MSVC
-
Robert authored
* Docker test for Zend PHP 7.3 * hhvm * move failing hhvm test to TODO zone * c# mono 5.18 test * python coverage reports
-
- 14 Jan, 2019 3 commits
-
-
cor3ntin authored
-
Vladimir Glavnyy authored
* Add default NaN/Inf to C#, Java, Python * Python NaN/Inf test added * Remove MSVC2010/13 dependent code
-
unintellisense authored
* support clearing flatBuffer builder in js * remove unused member reset force_defaults dont actually need to clear data in bytebuffer
-
- 07 Jan, 2019 3 commits
-
-
Vladimir Glavnyy authored
-
Vladimir Glavnyy authored
* Add `NaN` and `Inf` defaults to the C++ generated code. * Refactoring: add FloatConstantGenerator * Refactoring-2: - remove isnan checking for all float/double values - add most probable implementation of virtual methods of FloatConstantGenerator * Add conditional (FLATBUFFERS_NAN_DEFAULTS) isnan checking
-
Yong Tang authored
In flatbuffers, build_defs.bzl has been updated to have the bazel rule `flatbuffer_cc_library` defined. Therefore, it should be possible to build another application and using `flatbuffer_cc_library` directly (by `load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")`) However, when I tried to do the above, I saw the following errors in bazel: ``` ERROR: /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/arrow/BUILD.bazel:12:1: in deps attribute of cc_library rule @arrow//:arrow_format: target '@arrow//:runtime_cc' does not exist. Since this rule was created by the macro 'flatbuffer_cc_library', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/com_github_google_flatbuffers/build_defs.bzl:216:16 ``` The reason for the bazel error was that `//:runtime_cc` and `//:flatc` does not have the repo name prefixed. By prefix `` the above bazel build error could be resolved. This fix should help other programs to use flatbuffers directly through bazel. Signed-off-by:
Yong Tang <yong.tang.github@outlook.com>
-
- 28 Dec, 2018 1 commit
-
-
Robert authored
Track and emit required FlatBuffers namespace imports in generated Go code. Update Go code generator by moving most functionality into the generator class, to facilitate namespace tracking. (Note that the git diff in this combined commit may appear large due to this refactoring, but very little code was actually changed.) Update Go code generator by tracking namespace imports when generating FlatBuffers code. Update Go code generator by emitting package imports to correctly reference code in other FlatBuffers namespaces. Create Go test that checks the usage of InParentNamespace objects (as defined in the example schema). Create Docker test that checks the Go language port. Fixes #4883 Fixes #3927 Individual commits: * remove "static" from soon-to-be method functions * move almost all functions into class as methods * set current namespace and emit package names if needed * track imported namespaces * parent namespaces work * docker test for go ^1.11 * update base image name for go docker test * remove cerr debugging * formatting fixes * re-run generate_code.sh * explicitly test namespace imports and usage
-
- 27 Dec, 2018 1 commit
-
-
Wouter van Oortmerssen authored
Change-Id: I3f23bb1478763334dbc7e43579555518fb2412c2
-
- 21 Dec, 2018 1 commit
-
-
Peter Dillinger authored
By avoiding redundant alignment+alloc checks (startVector does prep) and virtual calls (by making the class final) in inner loops.
-
- 17 Dec, 2018 2 commits
-
-
Owen O'Malley authored
* Pulling in protobuf's faster UTF-8 encoder. * Remove Utf8 unsafe code.
-
Vladimir Glavnyy authored
-
- 13 Dec, 2018 2 commits
-
-
tira-misu authored
* Enable flatbuffer to initialize Parser from bfbs (#4283) Now its possible to generate json data from bfbs data type and flatbuffers data and visa versa. * add deserialize functionality in parser from bfbs * add small usage sample * Fix build break * Merge branch 'pr/1' into fix-issue4283 * Fix buildbreak * Build monster_test.bfbs with --bfbs-builtins Attribute flexbuffer has be included in bfbs. Only with this attribute test will run. By initialization a parser by a bfbs the attribute has to be known for this filed. monsterdata_test.golden has a flexbuffer field so parse would fail. * Fix generate_code.sh * Revert automatic indent changes by IDE * Auto detect size prefixed binary schema files * Use identifier (bfbs) to detect schema files
-
Christian Lang authored
-
- 10 Dec, 2018 2 commits
-
-
Rob Agar authored
* disable reproducible build warning due to date/time macros * wrapped GCC pragmas in #ifdef _GNUC_ * removed __DATE__ and __TIME__ macros from flatc.cpp
-
Austin Schuh authored
* Add flatbuffer_cc library support * Update flags so all the tests pass Tests now all pass! * Modify the tests to use the generated code This should be a simple serialize/deserialize test of the new generated code to make sure the bazel rules are doing something sane. * Use generated monster_test.fb in testing/test.cpp cmake drops it's generated code in tests/monster_test_generated.h Instead of checking that in, let's generate it with bazel. * Make grpc tests depend on monster_test_generated.h * Remove redundant cmake dependency This should address @aardappel's feedback. * Run flatc for Android as well This will fix the last travis.ci failure * Add generated output folder and fix flags * Move flatbuffers_header_build_rules to the library that uses it * Use --cpp-ptr-type to fix android Android was the only target using the STL emulation layer. It needed the --cpp-ptr-type flatbuffers::unique_ptr flag to work. Add it! * Roll back changes to use autogenerated monster_test_generated. Flip tests/test.cpp to use the autogenerated file as well.
-
- 06 Dec, 2018 1 commit
-
-
Kamil Rojewski authored
-
- 03 Dec, 2018 2 commits
-
-
Simon.S.King authored
[net] Fix issue #5036 when write a double value into bytebuffer at big endian machine with unsafe mode. (#5076)
-
Matt Frantz authored
-