- 23 Dec, 2019 3 commits
-
-
Wouter van Oortmerssen authored
For details, test.cpp/FlexBuffersDeprecatedTest(), and also https://github.com/google/flatbuffers/issues/5627 Change-Id: I6e86e1138a5777e31055cfa2f79276d44732efbc
-
stefan301 authored
* Added missing EndTable() call to VerifyObject() VerifyObject called VerifyTableStart() but not EndTable(). This made Verifier::VerifyComplexity() increase depth_ with each table, not with the depth of tables. https://groups.google.com/forum/#!topic/flatbuffers/OpxtW5UFAdg * Added Check to VerifyAlignment https://stackoverflow.com/questions/59376308/flatbuffers-verifier-returns-false-without-any-assertion-flatbuffers-debug-veri
-
Michael Beardsworth authored
* Keep include prefix when converting from proto. This change preserves the include prefix when generating flatbuffers from proto (with FBS_GEN_INCLUDES) defined. * Improve handling of imports in proto conversion. Previously, there was no runtime flag to make proto->fbs conversion keep the import structure of a collection of files. This change makes proto conversion respect the --no-gen-includes flag and skip the output of "generated" symbols.
-
- 18 Dec, 2019 1 commit
-
-
Light Lin authored
* Fix prepare space for writeListInt64 and writeListUint64 * Fix align issues
-
- 17 Dec, 2019 2 commits
-
-
Matt Brubeck authored
* Make Rust constants public Otherwise they cannot be accessed by code that consumes the generated bindings. * Re-generate test code * Add a test for enum constants
-
cryptocode authored
-
- 15 Dec, 2019 1 commit
-
-
Max Burke authored
* Bugfix for Rust generation of union fields named with language keywords Looking at ParseField, it appears that in the case of unions, an extra field with a `UnionTypeFieldSuffix` is added to the type definition, however, if the name of this field is a keyword in the target language, it isn't escaped. For example, if generating code for rust for a union field named `type`, flatc will generate a (non-keyword escaped) field named `type_type` for this hidden union field, and one (keyword escaped) called `type_` for the actual union contents. When the union accessors are generated, they refer to this `type_type` field, but they will escape it mistakenly, generating code like this: ``` #[inline] #[allow(non_snake_case)] pub fn type__as_int(&self) -> Option<Int<'a>> { if self.type__type() == Type::Int { self.type_().map(|u| Int::init_from_table(u)) } else { None } } ``` Which will fail to build because the field is called `self.type_type()`, not `self.type__type()`. * [Rust] Add crate-relative use statements for FBS includes. At present if a flatbuffer description includes a reference to a type in another file, the generated Rust code needs to be hand-modified to add the appropriate `use` statements. This assumes that the dependencies are built into the same crate, which I think is a reasonable assumption? * Revert "[Rust] Add crate-relative use statements for FBS includes." This reverts commit d554d79fecf5afd6da6fb993b30b4cd523a5889a. * Address comments raised in PR * Update documentation comments per feedback * Fix typo
-
- 13 Dec, 2019 1 commit
-
-
FujiZ authored
-
- 09 Dec, 2019 2 commits
-
-
Gautham B A authored
The line where the MessageBuilder was constructed was commented out (perhaps an oversight).
-
Björn Harrtell authored
-
- 06 Dec, 2019 1 commit
-
-
cryptocode authored
The rationale for this option is that JSON clients typically want empty arrays (i.e [] in the JSON) instead of missing properties, but not empty strings when the value isn't set. --force-empty is kept as-is, i.e. it will force both empty strings and vectors. Closes #5652
-
- 05 Dec, 2019 1 commit
-
-
Wouter van Oortmerssen authored
Change-Id: I503fbfaff1d2579807ca71a07cca8363dff75e52
-
- 02 Dec, 2019 5 commits
-
-
bttk authored
* Split Bazel targets into multiple packages * Merge /include/BUILD back into /BUILD
-
Google AutoFuzz Team authored
Having a static_assert on MSAN and ASAN prevents the fuzzers from being used with different engines, like TSAN, UBSAN, … but also with fuzzers that aren't using MSAN/ASAN like afl for example.
-
lu-wang-g authored
* Flatbuffers Python Object API Implement the logic to generate the Python object API that can unpack the data from a buf class into an object class, and pack the data of an object class to a buf class. * Fix the build issues Remove unused parameters and replace auto in the for-loop statement with std::string to make it compatible with VS2010. * Fix the build issues. * Add support for Array type Added logic to handle Array type in Python Object API. Updated the generated code accordingly. * Fix the old style casting from int to char * Fixed another conversion from int to char * Fixed the import for typing Importing typing may cause errors when a machine do not have the moduel typing installed. This PR fixes the issue by guarding "import typing" with the "try/except" statement. * Fix issue of iterating the vector of import list * Update the generated examples using generate_code.sh * Fix the import order for typing The import list was stored in unordered_set, so that each generated codes may have different import order. Therefore, it failed in the consistency test where two generated copies need to have exactly the same apperance. * Optimize unpack using numpy Use numpy to unpack vector whenever it is possible to improve unpack performance. Also, added codegen command for Python specificly in generate_code.sh, because --no-includes cannot be turn on for Python. * Fix the import order * Update generate_code.bat for windows accordingly * Replace error message with pass Avoid printing error message for every Python2 users about typing. Replace it with pass.
-
Ivan Shynkarenka authored
[Clang 10]: definition of implicit copy constructor for 'TableKeyComparatoris deprecated #5649 (#5650)
-
nilsocket authored
Add missing semicolon for table field.
-
- 26 Nov, 2019 1 commit
-
-
Tiago Silva authored
* Fix Enum Stringer method when Enum has underscores Fixes #5481 * Fix go package importing itself when Union has imported members.
-
- 25 Nov, 2019 3 commits
-
-
Vladimir Glavnyy authored
-
Vladimir Glavnyy authored
-
FujiZ authored
-
- 21 Nov, 2019 1 commit
-
-
Derek Bailey authored
-
- 18 Nov, 2019 2 commits
-
-
Vladimir Glavnyy authored
* Add C++ build testing with clang and gcc This adds Dockerfiles which test building flatc and the C++ library against clang and gcc. See discussion at #5119. It is derived from the Travis CI tooling. The GRPC tests are failing due to #5099 so those are commented out. These are run from the .travis.yml file rather than the tests/docker/languages folder because the builds may each take longer than 30 minutes and were hitting Travis timeouts. Parallel builds and build caching attempt to keep the build times low. * Add GCC 8.3 and Clang 7.0 with sanitizers into CI (based on #5130) - Add a docker based on Debian Buster. - Add C++ building scripts for the docker. - Leak-sanitizer requires SYS_PTRACE.
-
FujiZ authored
-
- 15 Nov, 2019 1 commit
-
-
Malar Kannan authored
* Support for python grpc * add few fixes * Fixes build * Fix python generator * Add tests * Fix grpc python test * Fix tests and add incomplete python generator * Fix python generator * Add python generator methods * Fix Appveyor build * grpc python support v0.1 * Update tests * update grpctest * Remove duplicated code and fix a brace * tests for flatbuffers grpc python * Updated tests + removed SerializeToString, From String * remove pickle import * include missing files in ci - BUILD and generated test result
-
- 14 Nov, 2019 3 commits
-
-
Derek Bailey authored
-
Derek Bailey authored
-
Derek Bailey authored
* Added basic schema evolution tests * Add BUILD targets for evolution tests. Added to test/generate_code scripts * Use vector.front() instead of vector.data() * Added --scoped-enums option for evolution test
-
- 11 Nov, 2019 4 commits
-
-
Derek Bailey authored
* Cloned idl_gen_general.cpp to idl_gen_csharp.cpp and removed java references * Java generator changes
-
Dmitry authored
-
messense authored
See https://github.com/servo/rust-smallvec/pull/175 for changelog.
-
Derek Bailey authored
-
- 07 Nov, 2019 3 commits
-
-
Wouter van Oortmerssen authored
Change-Id: Ia439bcc61bac5788792244d10e573b1fba54b347
-
Derek Bailey authored
-
Derek Bailey authored
* Automatic refractor of C++ headers to Google C++ style guide * Automatic refractor of C++ source to Google C++ style guide * Automatic refractor of C++ tests to Google C++ style guide * Fixed clang-format issues by running clang-format twice to correct itself. Kotlin was missing clang-format on after turning it off, so it was changed,
-
- 05 Nov, 2019 2 commits
-
-
Wouter van Oortmerssen authored
Change-Id: Iccae8fe9409adbf3cd3013a5cf3368e068175ad3
-
Wouter van Oortmerssen authored
Now identical to https://www.apache.org/licenses/LICENSE-2.0.txt Change-Id: I6eab8bdee2472107dfc72265e204fdd16f3abc2e
-
- 04 Nov, 2019 3 commits
-
-
Even Rouault authored
Older clang versions raise: ``` ./flatbuffers/base.h:365:1: error: unknown attribute 'no_sanitize' ignored [-Werror,-Wattributes] __supress_ubsan__("alignment") ^ ./flatbuffers/base.h:246:50: note: expanded from macro '__supress_ubsan__' #define __supress_ubsan__(type) __attribute__((no_sanitize(type))) ^ ``` Comparing https://releases.llvm.org/3.6.0/tools/clang/docs/AttributeReference.html with https://releases.llvm.org/3.7.0/tools/clang/docs/AttributeReference.html shows that __attribute__((no_sanitize(type))) is available since 3.7.0
-
Derek Bailey authored
* Skip generation of mutable union types * Removed C# and Java unit tests that mutated a Union type
-
Even Rouault authored
Fixes following clang -Wdocumentation warning: ``` flatbuffers.h:1762:17: error: parameter ']' not found in the function declaration [-Werror,-Wdocumentation] /// @param[in]] v A const reference to the `std::vector` of structs to ```
-