Denis Blank
72aa85a759
[C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) ( #7520 )
...
* [C++] Add a failing unit test for #7516 (Rare bad buffer content alignment if sizeof(T) != alignof(T))
* [C++] Fix final buffer alignment when using an array of structs
* A struct can have an arbitrary size and therefore sizeof(struct) == alignof(struct)
does not hold anymore as for value primitives.
* This patch fixes this by introducing alignment parameters to various
CreateVector*/StartVector calls.
* Closes #7516
2022-09-21 11:05:05 -07:00
Dorochi
bfceebb7fb
Fix conform ( #7532 )
...
* Fix conform;
Make sure the command fails when tail fields are removed;
* Fix last commit according to dbaileychess' comment
2022-09-14 21:45:40 -07:00
Derek Bailey
bc44fad352
UnPackTo disable merge by default ( #7527 )
...
* UnPackTo disable merge by default
* avoid double free in test
* remove merge parameter
* remove shrink to fit
2022-09-13 22:00:01 -07:00
Björn Harrtell
4fca4dc60c
[TS/JS] Move TS tests to dedicated folder and deps upgrade ( #7508 )
...
* Move TS tests to dedicated folder and deps upgrade
* Attempt to fix generate_code
* Fix dir on CI
* Add js extension
* Fix missing extension
* Harmonize with test gen
* Unexplained code gen change
* Restore yarn.lock
* Naive attempt to fix bazel stuff
* Pin @bazel/typescript to 5.2.0
* Attempt to fix bazel
* More tweak
* Upgrade deps
* Tweak?
* Fix path
* Fix test package
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-09-12 20:03:23 -07:00
dependabot[bot]
036032373b
Bump junit from 4.13 to 4.13.1 in /java ( #7526 )
...
Bumps [junit](https://github.com/junit-team/junit4 ) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases )
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md )
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1 )
---
updated-dependencies:
- dependency-name: junit:junit
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-11 19:56:51 -07:00
Nick
89dfb43f3b
Replace `bash JavaTest.sh` with `mvn test` ( #7500 )
...
* Start of mvn-ification of the test
* move to right locations
* Update the IO done in the test to read from resources / write to temp folders
* Add github workflow attempt to mvn test it instead of JavaTest.sh
* Pin the Kotlin benchmark's symlink for /java to the right location
* Inline equality assertions and format JavaTest.java
* fix android gradle source directory
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-09-11 17:46:46 -07:00
Derek Bailey
c49aff4b6f
enabled cpp17 tests in CI ( #7524 )
2022-09-11 16:08:07 -07:00
Derek Bailey
56e60223c3
prevent force_align attribute on enums ( #7523 )
2022-09-10 13:41:58 -07:00
Derek Bailey
89b1f5aa1b
remove travis config ( #7522 )
...
* remove travis config
* remove more travis and appveyor stuff
* remove appveyor specific things
2022-09-10 12:36:51 -07:00
Paulo Pinheiro
b901598233
[Java][Flexbuffers] Add API to add nullables into the buffer. ( #7521 )
...
Fix #7517
2022-09-10 09:13:01 -07:00
Derek Bailey
8cdc6a2885
Install BuildFlatBuffers.cmake ( #7519 )
2022-09-10 00:30:47 -07:00
mustiikhalil
a67e35aff9
Moves all of the swift test code into tests/swift ( #7509 )
...
Fixes failing tests by regenerating test cases
2022-09-09 22:35:42 -07:00
Derek Bailey
f124e41ae6
Updated Readme
...
Added links to runtime packages for variety of languages.
2022-09-03 08:05:36 -07:00
Paulo Pinheiro
4c954181cd
[Java][FlexBuffers] throwing exception for untyped fixed vectors ( #7507 )
...
Untyped fixed vectors are not supported in FlexBuffers. There
was an assert to check for it, but on java, asserts are optional. This
change converts the assertion into a runtime exception.
Fixes #7358
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-09-01 22:04:18 -07:00
Paulo Pinheiro
7f7547737e
[Android] Remove maven dependency of flatbuffers and use source folder ( #7503 )
2022-09-01 14:58:25 -07:00
mustiikhalil
a79d61ea85
Fixes issue with cocoapods failing to be published because of docc ( #7505 )
...
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-09-01 11:44:13 -07:00
Chris Langhans
d465b39c3e
[CMake]: fix breaking find_package change ( #7499 ) ( #7502 )
...
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-09-01 10:28:59 -07:00
Derek Bailey
c5a609dc20
[C#] Prepares for official Nuget release ( #7496 )
...
* Define nuget package
* C# Switch to Google.FlatBuffers namespace
* Add Source Link for nuget package
* Add Strong Name signing of Google.FlatBuffers
2022-09-01 10:17:34 -07:00
Ivan Zakharchanka
5634dc3d0d
[ISSUE-6268] returns NaN insteadof nan ( #7498 )
...
* returns NaN insteadof nan
* clang-format-git
2022-08-31 16:22:17 -07:00
mustiikhalil
37e37b8cad
Updates cocoapods version ( #7497 )
2022-08-31 10:20:11 -07:00
Derek Bailey
8fd4534fbe
update android multidex setting ( #7495 )
2022-08-30 14:32:16 -07:00
Derek Bailey
d5427da52f
Disable Android Build ( #7494 )
2022-08-29 22:16:04 -07:00
Derek Bailey
06c5c7ed0b
FlatBuffers Version 2.0.8 ( #7492 )
2022-08-29 20:43:36 -07:00
Derek Bailey
b190ce11b0
Verifier Refinements ( #7490 )
2022-08-29 19:21:42 -07:00
Casper
bf5d23230a
Namer applied to Typescript generator ( #7488 )
...
* Namer applied to Typescript generator
* fixes
* More fixes
Co-authored-by: Casper Neo <cneo@google.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-08-29 16:44:35 -07:00
Björn Harrtell
ce382d6dd3
[TS/JS] Add rollup and config to generate iife flatbuffers bundle ( #7449 )
...
* Add rollup and config to generate iife flatbuffers bundle
* Atempt to use yarn and add deps
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-08-29 16:37:43 -07:00
Casper
41d9add7ef
C++: Add option to skip verifying nested flatbuffers ( #7489 )
...
* C++: Add option to skip verifying nested flatbuffers
Additionally, add an options struct to the verifier for those
who prefer designated initializers to default arguments. The former
constructor is defined in terms of the latter because in old c++,
having default values for members removes list initialization, making
defining constructors in the other way a lot more challenging to write.
* fixes
* fmt
* formatting, and remove an argument
* fix
Co-authored-by: Casper Neo <cneo@google.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-08-29 16:25:57 -07:00
sssooonnnggg
6a87427540
[C++] support native_inline attribute for vector of tables ( #7479 )
2022-08-29 12:48:10 -07:00
Derek Bailey
694add668b
Refactor test.cpp ( #7487 )
...
* Add timing command to cmakelist
* Start to split test.cpp. Move flexbuffers tests
* Move monster related tests to own file
* Move parser related tests to own file
* Move json related tests to own file
* Move proto related tests to own file
* moved more functions to parser test
* moved more functions to parser test2
* move monster extra tests to monster test
* move evolution tests to own file
* move reflection tests to own file
* move util tests to own file
* rehomed various tests
* move optional scalars test to own file:
* rehome more tests
* move fuzz tests. Got rid of global test_data_path
* fixes for CI failures
* add bazel files
2022-08-28 16:54:58 -07:00
Derek Bailey
7edf8c9084
Update scorecard to 1.1.2
2022-08-26 14:40:36 -07:00
Derek Bailey
b86387442e
Fix typos ( #7483 )
2022-08-26 14:35:21 -07:00
Derek Bailey
e2eb5ee670
Include <array> head in stl_emulation.h ( #7480 )
...
* Add C++ standard builds for windows CI
* Allow C++std to be specified in cmake
* Include <array> in stl_emulation
* Add linux std CI builds
2022-08-26 00:22:27 -07:00
Axel Sommerfeldt
994502b6dd
Version number in file package.json updated to 2.0.7 ( #7476 )
...
Co-authored-by: Axel Sommerfeldt <axel.sommerfeldt@gmail.com>
Co-authored-by: Derek Bailey <derekbailey@google.com>
2022-08-25 20:40:50 -07:00
sssooonnnggg
fa41e83679
[C++] Fixed crash when copying table with empty shared strings ( #7477 )
2022-08-25 16:50:17 -07:00
Derek Bailey
799cc8f7b9
Use type traits for specialization ( #7475 )
2022-08-24 12:16:44 -07:00
Derek Bailey
b7eb441470
Disable RTTI and rework use in idl_gen_ts.cpp ( #7474 )
2022-08-24 10:36:11 -07:00
Axel Sommerfeldt
8d01c5859c
CMake project version detection made more robust ( #7473 )
...
This fixes two problems:
1. The project could be build when using own tags which does not follow the pattern v<major>.<minor>.<patch>.
2. The case "tag points to the commit" will be handled correctly by setting VERSION_COMMIT to 0.
This commit resolves https://github.com/google/flatbuffers/issues/7472
Co-authored-by: Axel Sommerfeldt <axel.sommerfeldt@gmail.com>
2022-08-24 09:28:52 -07:00
Derek Bailey
237e8b71fe
Moved compiler warnings around ( #7471 )
2022-08-23 23:23:24 -07:00
Derek Bailey
eeb8fd60d5
Include builder.addOffset for vector of structs ( #7470 )
2022-08-23 23:17:35 -07:00
Derek Bailey
fef2ffc4d0
Use schema include name for keep-prefix ( #7469 )
2022-08-23 21:29:17 -07:00
Derek Bailey
8367664f15
Flatbuffers Version 2.0.7 ( #7462 )
2022-08-22 21:42:15 -07:00
Derek Bailey
d6f06c33f7
Reworked keep prefix ( #7456 )
...
* reworked keep prefix
* checking in missing schema
* fix flatc path for build scripts
2022-08-22 18:59:24 -07:00
Xùdōng Yáng
627e8bf364
update grpc version ( #7457 )
...
* update grpc version
this in turn updates the upb version, which fixes Flatbuffers' failure in Bazel CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2586#0182a995-a528-4e87-90a0-1604a5e9f7eb
* also update rules_go version
* the new rules_go actually needs a version
* grpc_extra_deps() also registers go toolchains
* make buildifier happy
* address review comments
2022-08-22 16:53:28 -07:00
Derek Bailey
883c42b7db
disabling unpackto optimization ( #7459 )
2022-08-18 20:51:18 -07:00
Derek Bailey
7aae0af305
Remove old GRPC bash script and convert to python3 ( #7454 )
...
* Remove old GRPC bash script and convert to python3
* updated checking gRPC script to python3
2022-08-16 23:44:50 -07:00
Paul Harris
b057aa917f
Grouped anonymous namespaces together, ( #7455 )
...
A follow-up PR to #7212
2022-08-16 22:45:21 -07:00
Derek Bailey
f1b26ff7fb
Change to GetTypeName ( #7453 )
2022-08-16 20:32:53 -07:00
laurentsimon
9610a666b1
Generate SLSA signatures for Released zip files ( #7450 )
...
* update
* update
* update
* update
* update
* update
* update
2022-08-16 16:30:37 -07:00
Paulo Pinheiro
1e0f75a647
[WIP] speedup ( #7452 )
2022-08-16 13:47:08 -07:00
Derek Bailey
82b75407a3
Wrap types in namespace for --ts-flat-files and --gen-all ( #7451 )
...
* Wrap types in namespace for --ts-flat-files and --gen-all
* Fixes for escaping object types
* Added to generate_code
2022-08-16 12:52:26 -07:00