Age | Commit message (Collapse) | Author | Files | Lines |
|
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
|
|
|
|
#7451 caused getFullyQualifiedName to return a name with underscores,
not periods. Because the fully qualified name is a property of
FlatBuffers, not the language being codegen'd for, it should use
periods. Fixes #7564.
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Fix Cannot find symbol and test case
* Add generated tests
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Add CI step to build with -DFLATBUFFERS_NO_FILE_TESTS
* Fix cmake syntax
* Further fix cmake argumetns
* Add workaround for unused-parameter.
* Remove build matrix
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
Guard DoNotRequireEofTest against -Wunused-function on platforms without file tests.
|
|
* Fix Rust codegen escaping field in tables.
* other gencode
* gencode
* removed a debug print
* regen code
Co-authored-by: Casper Neo <cneo@google.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Add clang-tidy, fix some bugpron problems.
* Fix more issues
* Fix some more issues :))
* Minimal pr to just add clang-tidy
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Fix clang -Wnewline-eof warning
* Enable -Wnewline-eof warning
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* create job to build linux and run unit test on s390x
* update
* update
* update
* update
* update
* print out machine type
* create regression test to build a big endian arch and run unit tests daily
* rename and schedule run on pr merged and on request
* udpate
Co-authored-by: Wen Sun <sunwen@google.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Add Ref.AsStringBytes to flatbuffers.flexbuffers Python API
* Append Bytes to AsStringBytes return value
Co-authored-by: Jared Junyoung Lim <jaredlim@google.com>
|
|
flag (#7706)
* Fix bug one file import bug
* Create reset import function and add braces
|
|
|
|
stored incorrectly because of low byte width. (#7703)
Reported in https://github.com/google/flatbuffers/issues/7690
|
|
* Restore public visibility of previously-public fields
* code review feedback
|
|
|
|
|
|
conversion loses integer precision: 'unsigned int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion] (#7697)
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* update unit test and generated file to test is extra endianswap can help resolve issue
* remove EndianScalar wrapper from Get method
* remove endianscalar wrapper
* update
* update
* use Array instead
* clang format
* address error
* clang
* update
* manually generate
* Move Nim to completed language
* Add swift link
* address comments
* update unit test
* address comment
* address comment
* regenerate file
* use auto instead of size_t
* use uint32_t instead
* update
* format
* delete extra whitespace
Co-authored-by: Wen Sun <sunwen@google.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
|
|
Fixes: #7664 (hopefully)
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Refactor for loops and simplify code
* Refactor for loops and simplify code
* Fix for loop and reformat
* reformat code
|
|
* Add LICENSE.txt to python
* Remove LICENSE.txt from python path and used the root LICENSE.txt file
|
|
|
|
|
|
|
|
|
|
union_vector_generated.h (#7684)
* Sync make outputs with master
* Remove --gen-name-string flag from CMAKE
|
|
Without the change build fails on weekly `gcc-13` snapshots as:
In file included from /build/flatbuffers/tests/reflection_test.cpp:1:
tests/reflection_test.h:9:57: error: 'uint8_t' has not been declared
9 | void ReflectionTest(const std::string& tests_data_path, uint8_t *flatbuf, size_t length);
| ^~~~~~~
|
|
* Fix PHP byte validation and reenable builds
* Use checkout@v3
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
struct (#7678)
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
(#7660)
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Fix java import wild card
* fix java include
* Fix some import problems
* clang-format
* Sort imports
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* `build.yml`: MacOs Build Inplace
* Update build.yml
|
|
* `build.yml` Update dependencies
* Update build.yml
* Update build.yml
* `build.yml`: Use macos-11
* Update build.yml
|
|
|
|
* Update release script to update Rust version (it still needs to be published after)
* Also update rust while I'm at it
Co-authored-by: Casper Neo <cneo@google.com>
|
|
|
|
|
|
|
|
(#7651)
* Add --go-module-name flag to support generating code for go modules
* Rename echo example folder
* Grammar
* Update readme for go-echo example
* Update readme for go-echo example
* Re-enable go modules after test is done
|
|
* Add support for key lookup for tables in Go
* Run clang format
* Run go fmt on tests
* Remove TODO in tests
* Update LookupByKey API
* Update LookupByKey API
* Don't use resolvePointer in expectEq
* Use generated getters instead of reading values directly from buffer
* Fix typo
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Fix go generator undefined Package, also throw exception in specific examples.
* Add test for go generator import problem
* Add new version of generated go file. Fix conflict.
* Add executable permission to generate_code.py script.
* Improve test quality, remove unwanted generated files, better naming
* Fix comments
* clang format
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
|
|
The BytesConsumed function uses the `cursor_` to determine how many
bytes have been consumed by the parser, in case the user of the Parser
object wants to step over the parsed flatbuffer that is embedded in some
larger string. However, the `cursor_` is always one token ahead, so that
it can determine how to consume it. It points at the token that is about
to be consumed, which is ahead of the last byte consumed.
For example, if you had a string containing these two json objects and
parsed them...
"{\"key\":\"value\"},{\"key\":\"value\"}"
...then the `cursor_` would be pointing at the comma between the two
tables. If you were to hold a pointer to the beginning of the string and
add `BytesConsumed()` to it like so:
const char* json = // ...
parser.ParseJson(json);
json += parser.BytesConsumed();
then the pointer would skip over the comma, which is not the expected
behavior. It should only consume the table itself.
The solution is simple: Just hold onto a previous cursor location and
use that for the `BytesConsumed()` call. The previous cursor location
just needs to be set to the cursor_ location each time the cursor_ is
about to be updated. This will result in `BytesConsumed()` returning
the correct number of bytes without the off-by-one-token error.
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* Fix C/C++ Create<Type>Direct with sorted vectors
If a struct has a key the vector has to be sorted. To sort the vector
you can't use "const".
* Changes due to code review
* Improve code readability
* Add generate of JSON schema to string to lib
* option indent_step is supported
* Remove unused variables
* Fix break in test
* Fix style to be consistent with rest of the code
* [TS] Fix reserved words as arguments (#6955)
* [TS] Fix generation of reserved words in object api (#7106)
* [TS] Fix generation of object api
* [TS] Fix MakeCamel -> ConvertCase
* [C#] Fix collision of field name and type name
* [TS] Add test for struct of struct of struct
* Update generated files
* Add missing files
* [TS] Fix query of null/undefined fields in object api
* [C#] Fix collision of member if enum name is "Value"
* Fix due to style guide
Co-authored-by: Derek Bailey <derekbailey@google.com>
|
|
* add support for using array of scalar as key field
* update cmakelist and test.cpp to include the tests
* update bazel rule
* address comments
* clang format
* delete comment
* delete comment
* address the rest of the commnets
* address comments
* update naming in test file
* format build file
* buildifier
* make keycomparelessthan call keycomparewithvalue
* update to use flatbuffer array instead of raw pointer
* clang
* format
* revert format
* revert format
* update
* run generate_code.py
* run code generator
* revert changes by generate_code.py
* fist run make flatc and then run generate_code.py
Co-authored-by: Wen Sun <sunwen@google.com>
|
|
specially when add to other projects. (#7650)
|