mmoscicki2 [Thu, 19 Sep 2019 17:32:24 +0000 (19:32 +0200)]
Fixed DetachedBuffer self move assignment (#5521)
Austin Schuh [Thu, 19 Sep 2019 16:58:36 +0000 (09:58 -0700)]
Fix buildifier warnings found in new bazel (#5517)
Fixes warnings caught in:
https://buildkite.com/bazel/flatbuffers/builds/863#
cff87e1d-b976-4734-8157-
4b6d88c7b5e1
Wouter van Oortmerssen [Tue, 17 Sep 2019 00:48:54 +0000 (17:48 -0700)]
Fixed Reflection Verifier not handling vectors of unions.
Change-Id: Ie94386ff8e10fd2a964bd9155139b50953746a37
Wouter van Oortmerssen [Mon, 16 Sep 2019 21:43:35 +0000 (14:43 -0700)]
Fixed GenerateText not handling vectors of unions.
Change-Id: Ie82abaf178495c4692e7d10be6b4a13f2fa1bee6
Kevin Fort [Wed, 11 Sep 2019 00:07:46 +0000 (19:07 -0500)]
Add element size parameter to __vector_as_arraysegment [c#] (#5512)
* Add element size parameter to __vector_as_arraysegment
Add element size parameter to __vector_as_arraysegment fixing issue where VectorAsBytes returns incorrect size span for multibyte element types.
* Update codegen
Update codegen and Table to return typed span.
* update test files
update test files
Paulo Pinheiro [Tue, 10 Sep 2019 17:06:47 +0000 (19:06 +0200)]
[Java][FlexBuffers] Improve documentation for FlexBuffers in Java. (#5506)
Also add a FlexBuffer constructor to simplify usage
jaceksur [Tue, 10 Sep 2019 17:01:27 +0000 (10:01 -0700)]
Annotate getters with @Pure when --java-checkerframework is specified. (#5510)
Together with @Nullable, this allows users to use static analysis tools
like CheckerFramework to catch NPEs caused by unset fields.
Edward [Mon, 9 Sep 2019 21:40:33 +0000 (05:40 +0800)]
[Dart]fix: segment fault with empty namespace when generating dart file (#5507)
* fix: segment fault with empty namespace when generating dart file
* fix: compile err
* fix: compile err
* fix: imported file names
* fix test issues
* fix some language style issues
Casper [Mon, 9 Sep 2019 20:02:43 +0000 (13:02 -0700)]
Rust: Fixed cargo clippy on non-generated code (#5485)
* Cargo clippy lints
* more lints
* more lints
* Restored a doc comment
* Comment on float eps-eq and adjusted casting
Jaemin Park [Thu, 5 Sep 2019 17:22:04 +0000 (02:22 +0900)]
[Javascript] Fix syntax error for signed enum (#5503)
* wrap quotes to enum name map to prevent syntax errorn when enum value is negative
* Add a test that covers signed enum case
Nathan Williams [Tue, 3 Sep 2019 21:10:54 +0000 (07:10 +1000)]
[C#] Fix retrieving enumeration vectors as arrays (#5457)
* [C#] Fix retrieving enumeration vectors as arrays
* [C#] Don't generate CreateVectorBlock for enums
Björn Harrtell [Tue, 3 Sep 2019 18:50:42 +0000 (20:50 +0200)]
Doc typo fixes (#5505)
Morten Grouleff [Tue, 3 Sep 2019 18:13:32 +0000 (20:13 +0200)]
Use all of the available space in the buffer returned by ByteBufferFactory to allow the factory to keep a pool of larger than initialsize sized buffers. (#5500)
Paulo Pinheiro [Thu, 29 Aug 2019 22:06:24 +0000 (00:06 +0200)]
[FlexBuffers][Java] Implementation of FlexBuffers API (#5476)
* [FlexBuffers][Java] Implementation of FlexBuffers API
This is the initial attemp to implement FlexBuffer on Java.
There is some limitations as compared to the C++ implementation:
1 - No mutations implemented yet
2 - Does not parse from json
Also, this initial implementation is not focused and performance, but
get the basics write. So there is many opportunities for optimization, for instance,
remove all enums, return CharSequence instead of Strings and object pooling.
* [FlexBuffers][Java] Optimizations and simplification of the Builder API.
This change removes BitWidth enum in favor of static ints. Also
make all "reads" APIs closer to C++ implementation (try to cast or convert
as much as possible, assuming user knows what he is doing). Finally,
we remove the helper classes for building vectors and maps.
There is no official benchmarks, but the unit tests are running in less
than 50% for previous runs, which mean those optimizations are worth it.
* [FlexBuffers][Java] Fix Reference::asString behavior
There was a incorrect assumption that strings would be null-terminated, which
could lead to truncated strings. S now it relies size instead of null-termination.
Other minor improvements
Wouter van Oortmerssen [Mon, 26 Aug 2019 21:59:21 +0000 (14:59 -0700)]
Clarified value reuse in FlexBuffers
Change-Id: Ib771bfa46ccdf38eff25be857b1b73f8b300c649
Wouter van Oortmerssen [Mon, 26 Aug 2019 21:33:38 +0000 (14:33 -0700)]
Fixed test build invocation of arrays_test.fbs
Change-Id: Idfc8d9cfbdefda44f803a6232700842ee6b6bffd
Wouter van Oortmerssen [Mon, 26 Aug 2019 18:54:38 +0000 (11:54 -0700)]
FlexBuffers: allow any values to be shared.
(see comments in the code).
Change-Id: I5603abb0db436145739653692644bbcfd3c946e3
Wouter van Oortmerssen [Fri, 23 Aug 2019 21:31:31 +0000 (14:31 -0700)]
Android: remove app_dummy() calls
Change-Id: I0ebd4502f98d009ce5afe8c8bafb629284f0366c
Wouter van Oortmerssen [Fri, 23 Aug 2019 21:17:33 +0000 (14:17 -0700)]
Fixed STLPort Android compile error
Change-Id: I3595b9c6803718f34ce61fdfc367da97b50dc444
Earlonus [Fri, 23 Aug 2019 17:51:36 +0000 (01:51 +0800)]
[bugfix]flexbuffers isvector bugfix (#5488)
* commit isvector bugfix (change email recommit to pass cla)
* commit IsUntypedVector
* delete isvectorormap function
svenk177 [Fri, 23 Aug 2019 17:46:47 +0000 (19:46 +0200)]
Fix incorrect padding in arrays of structs (Issue #5484) (#5491)
Wouter van Oortmerssen [Tue, 20 Aug 2019 00:57:23 +0000 (17:57 -0700)]
Fixed missing generated code.
Change-Id: Iaa0633167c2a4d4543fc4de2af58112d60d5d1e6
Wes McKinney [Tue, 20 Aug 2019 00:49:37 +0000 (19:49 -0500)]
C++ IDL generation adds superfluous semicolon in GenTablePost, causing (#5483)
-Wextra-semi-stmt warning when building with Clang 8.0.0. Update generated
files for testing
Tsingson [Mon, 19 Aug 2019 22:32:04 +0000 (06:32 +0800)]
[go]add Name() for ForceCodec interface (#5486)
* add Name() for ForceCodec interface
// ForceCodec returns a CallOption that will set the given Codec to be
// used for all request and response messages for a call. The result of calling
// String() will be used as the content-subtype in a case-insensitive manner.
//
* Update grpc.go
Mark Nauwelaerts [Mon, 19 Aug 2019 19:48:25 +0000 (21:48 +0200)]
reflection: check for valid union enum value during object verification (#5475)
... to avoid assertion failure or invalid access due to invalid vector index
Edward [Mon, 19 Aug 2019 19:46:48 +0000 (12:46 -0700)]
has_method support for primitive fields in java runtime. Changed: idl.h, FlatBufferBuilder.java , idl_gen_general.cpp, idl_parser.cpp, flatc.cpp (#5468)
* has_method support for primitive fields in java runtime
* adding the new flag to flatc
* addressing the review comments
Max Burke [Mon, 5 Aug 2019 18:57:54 +0000 (11:57 -0700)]
Fix compilation error in tests. (#5472)
Local variables were shadowing member fields, causing errors.
Alexey Geraskin [Thu, 1 Aug 2019 21:31:48 +0000 (00:31 +0300)]
[C++] remove static_cast expression (#5440)
* [C++] remove static_cast expression
* [C++] Add unit test for native_type usage
* [C++] Add flatc compilation for native_type_test.fbs
* [C++] update CMakeLists to compile native_type_test.fbs properly
* Update BUILD file for bazel
* [C++] Add generated native_type_test_generated.h and fix arguments for flatc according to CMakeList
* [C++] remove "= default" from constructor to support old compilers
* Update BUILD file for bazel, attempt 2
* [C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types
* Update BUILD file for bazel, attempt 3
* Update BUILD file for bazel, attempt 4
* Update BUILD file for bazel, attempt 5
* Update BUILD file for bazel, attempt 6
* [C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types Part 2
* [C++] Keep only one optional parameter to compile_flatbuffers_schema_to_cpp_opt
* native_type_test.fbs style corrected
* [C++] Code style modifications
* [C++] Fix flatc arguments in CMakeLists
* [C++] Remove --gen-compare from default parameters for flatc in CMakeLists
* [C++] Change Vector3D fields from double to float, to have alignment eq. 4 (to support MSVC 2010), plus minor review fix
* [C++] Remove one more #if !defined
* [C++] Restore version with correct static_cast, add the same fix for SortedStructs
* Revert "[C++] Restore version with correct static_cast, add the same fix for SortedStructs"
This reverts commit
d61f4d6628cfce530c8b9a4c9e7af368d599f99f.
* [C++] Fix Android.mk
ll-antn [Thu, 1 Aug 2019 21:16:44 +0000 (00:16 +0300)]
[C++ ] Correctly serialize bit_flags enums to JSON with output_enum_identifiers option (#5454)
* Support output_enum_identifiers for enums with multiple bit values
* Cast bit_flag enum val to uint64_t instead of int64_t
Derek Bailey [Thu, 1 Aug 2019 17:28:54 +0000 (10:28 -0700)]
Fix for Boolean types (#5379) (#5466)
The packing/unpacking steps for Boolean values was failing because the
code expected numerical values. I overrode the functions for the Boolean
metatable to account for this. I also had to exclude the Boolean
metatable from the GenerateTypes helper function, as that was overriding
the Pack/Unpack functions defined in its metatable.
Added Linux bash script to run Lua tests from the command line.
Bug: google/flatbuffers#5379
Tested: Added Lua tests that were failing and are now fixed with the
code changes.
Wouter van Oortmerssen [Mon, 29 Jul 2019 18:43:28 +0000 (11:43 -0700)]
Renamed stale label from "wontfix" to "stale".
Change-Id: Iea88624d9d90e029a64cab9edf4e7c1cfc005e4a
Vladimir Glavnyy [Mon, 29 Jul 2019 18:38:52 +0000 (01:38 +0700)]
Replace '--cpp-include' brackets to quotes (#5438) (#5464)
Wouter van Oortmerssen [Sat, 27 Jul 2019 01:56:56 +0000 (18:56 -0700)]
Made stale.yml friendlier.
Vladimir Glavnyy [Sat, 27 Jul 2019 00:56:41 +0000 (07:56 +0700)]
Extend the error message if base type of parsed scalar not resolved (#5456)
* Extend the error message if base type of parsed scalar not resolved #5447
* Resolve PR notes
Wouter van Oortmerssen [Sat, 27 Jul 2019 00:48:21 +0000 (17:48 -0700)]
Add .github/stale.yml to auto close stale issues and PRs.
See https://probot.github.io/apps/stale/
Change-Id: I8176eeb21dbcd516f1d6f7b1e8c28602cdd9332a
Joseph Pyott [Fri, 26 Jul 2019 18:06:25 +0000 (14:06 -0400)]
Python: Added support for file_identifiers (#5123)
* Python: Added support for file_identifiers
* Added tests. Fixed file_identifier code.
* Python: Fixed excessive padding of file_identifier. Repaired tests.
* Python: Made code compatible with python2.7
* Python: Typo fix in @endcond
* whitespace normaalization
* Stylistic change from if(not X is None) to if(X is not None). Added comment to type string.
* Python: Added support for automatic code generation of file_identifiers. Added tests for said code generation.
* converted sprintf to snprintf
* Bugfix, added snprint deffinition for MSVC
* changed snprint deffinition for MSVC to sprint_s
* changed scanf to IntToStringHex. Renamed HasFileIdentifier to GenHasFileIdentifier.
* Added updated genereated code to commit
* Python bugix: flatc no longer produces HasFileIdentfier for shcemas with no file identifier
* Added tests to verify `MonsterBufferHasIdentifier` returns false on no Identifier
* Python: added tests for GetBufferIdentifier and BufferHasIdentifier
Python: removed unessasary parenethesis in if statements
Minor format changes.
* Python : correceted instances of keyword arguments being called as positional arguments
* fixed typos and grammer in comments
* Minor style fixes
* Indentation fix
* Equals style changes
* Python: Fixed Alignment Issues. Changed test code to test against atual output
* Ran make(forgot to run make last commit)
* Python: Style changes
* Style changes
* indentation and style
* readded CONTRIBUTING.md
* Formatting tweak
Mostly to make CI run again
* More formatting fixes
* More formatting fixes
* More formatting fixes
* More formatting fixes
* Formatting fix
* More formatting fixes
* Formatting
* ran generate_code.sh
ll-antn [Fri, 26 Jul 2019 16:14:05 +0000 (19:14 +0300)]
Fix numeric_limits<T>::max() to avoid conflict with windows.h header (#5462)
ll-antn [Fri, 26 Jul 2019 16:13:11 +0000 (19:13 +0300)]
Support nested_flatbuffer attribute when parsing bfbs schema (#5448)
Stewart Miles [Fri, 26 Jul 2019 00:58:02 +0000 (17:58 -0700)]
Pin FlatBuffers Android Travis builds to NDK r17c (#5460)
r17c is the last Android NDK to include stlport and gnustl.
We want to continue to support these deprecated STLs until we have
confidence few enough customers are using them.
Jason Monschke [Thu, 25 Jul 2019 18:09:40 +0000 (18:09 +0000)]
Change deprecated vector Length() to size() in tutorial (#5450)
Wouter van Oortmerssen [Thu, 25 Jul 2019 18:08:06 +0000 (11:08 -0700)]
Added missing Kotlin generated code change.
Change-Id: I7eeee6519b6dc619691437e44272cf5424d0d4ca
Uilian Ries [Thu, 25 Jul 2019 18:06:40 +0000 (15:06 -0300)]
#4590 Fix Conan build (#5449)
* #4590 Fix Conan build
- Create separated build for Conan on master branch
- Add Clang 7,8
- Add Gcc 9
Signed-off-by: Uilian Ries <uilianries@gmail.com>
* #4590 Do not build Conan for PRs
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Paulo Pinheiro [Mon, 22 Jul 2019 23:05:15 +0000 (20:05 -0300)]
Add basic Kotlin support (#5409)
* [Kotlin] Add kotlin generate code for tests and add
kotlin test to TestAll.sh
* [Kotlin] Add Kotlin generator
This change adds support for generating Kotlin classes.
The approach of this generator is to keep it as close
as possible to the java generator for now, in order
to keep the change simple.
It uses the already implemented java runtime,
so we don't support cross-platform nor js Kotlin yet.
Kotlin tests are just a copy of the java tests.
* Add optional ident support for CodeWriter
Identation is important for some languages and
different projects have different ways of ident
code, e.g. tabs vs spaces, so we are adding optional
support on CodeWriter for identation.
* [Kotlin] Add Documentation for Kotlin
* [Kotlin] Modify generated code to use experimental Unsigned types.
Alexey Geraskin [Thu, 18 Jul 2019 18:51:12 +0000 (21:51 +0300)]
[C++] fix static_cast expression (#5441)
jean-airoldie [Tue, 9 Jul 2019 20:41:51 +0000 (16:41 -0400)]
[rust] Ran rustfmt against library code (#5389)
Vladimir Glavnyy [Mon, 8 Jul 2019 18:22:56 +0000 (01:22 +0700)]
Extend the test of MonsterExtra (#5428)
* Extend the test of MonsterExtra
- Extend C++ test of MonsterExtra
- Add conversion of fbs/json NaNs to unsigned quiet-NaN
- Update documentation (cross-platform interoperability)
* Fix declaration of infinity constants int the test
Thanabodee Charoenpiriyakij [Mon, 1 Jul 2019 18:42:00 +0000 (01:42 +0700)]
Fix echo not interpret \n in GoTest.sh (#5426)
When running GoTest.sh, the last step that checking go format files
are print \n instead of new line:
These files are not well gofmt'ed:\n\nMyGame/Example/Color.go
MyGame/Example/MonsterStorage_grpc.go
This changes fix it by echo NOT_FMT_FILES in separate line.
Vladimir Glavnyy [Mon, 1 Jul 2019 18:38:21 +0000 (01:38 +0700)]
Remove unused variables (#5382)
- Fix GenerateTextFromTable (aliasing typo)
- Fix unused variable in idl_gen_dart.cpp
- Fix std::string passing (should be non-const value or const-reference)
- Remove unused variables
Andrew Noyes [Thu, 27 Jun 2019 21:11:31 +0000 (14:11 -0700)]
Fix undefined behavior. Closes #5422 (#5423)
* Fix undefined behavior. Closes #5422
* Move check into callers of make_space
Edward [Thu, 27 Jun 2019 19:19:57 +0000 (12:19 -0700)]
Update Utf8.java: more detailed exception message (#5421)
Provide more detailed exception message for malformed 2 byte utf8 character
Adrian Perez [Thu, 27 Jun 2019 16:23:13 +0000 (09:23 -0700)]
Fix for FLATBUFFERS_PREFER_PRINTF writing zero-length strings (#5418)
Vladimir Glavnyy [Tue, 25 Jun 2019 00:51:04 +0000 (07:51 +0700)]
Set C# Struct/Table visibility to public (#5381) (#5416)
Bryan Furia [Tue, 25 Jun 2019 00:49:53 +0000 (20:49 -0400)]
Don't check ForceDefaults when adding Offfset values (#5415)
Wouter van Oortmerssen [Mon, 24 Jun 2019 23:53:50 +0000 (16:53 -0700)]
Fixed broken Utf8Old.java
This would not correctly encode/decode strings when substituted for
the default Utf8Safe.java
Change-Id: Ib303697663b5b8cbf6888492f5255b2a45384c04
Bryan Furia [Mon, 24 Jun 2019 18:46:00 +0000 (14:46 -0400)]
Fix generating nested Flatbuffer accessors when they cross namespaces (#5414)
Austin Schuh [Thu, 20 Jun 2019 17:25:41 +0000 (10:25 -0700)]
Fix compatability with Bazel 0.27 (#5412)
rules_go was too old and using deprecated features. Upgrade it.
Wouter van Oortmerssen [Thu, 20 Jun 2019 17:21:10 +0000 (10:21 -0700)]
Updated missing generated code for PR #5313 (fixed arrays)
Change-Id: I249140119e6241beb5aec5670d0e5ccddc8f5251
svenk177 [Mon, 17 Jun 2019 22:15:13 +0000 (00:15 +0200)]
Add support for fixed-size arrays (#5313)
Vladimir Glavnyy [Mon, 17 Jun 2019 17:16:21 +0000 (00:16 +0700)]
Add FLATBUFFERS_COMPATIBILITY string (#5381)
* Add FLATBUFFERS_COMPATIBILITY string
- Add a new __reset method NET/JAVA which hides internal state
* Resolve PR notes
* Use operator new() to __init of Struct and Table
* Restrict visibility of C# Table/Struct to internal level
John Luxford [Fri, 14 Jun 2019 15:47:08 +0000 (10:47 -0500)]
[C#, Java, C++] Fixes issue #5399 by always including namespaces (#5404)
* [C#] Fixes issue #5399 by always including namespaces
* Updated tests for code generator changes
* Fixed 'As' method names
John Luxford [Fri, 14 Jun 2019 03:25:03 +0000 (22:25 -0500)]
[Go] Fix namespaces on enums (#5406)
Tiger Caldwell [Thu, 13 Jun 2019 09:58:40 +0000 (02:58 -0700)]
Excluded crtdbg.h from non-MSVC compilation (#5401)
Michael Seifert [Wed, 12 Jun 2019 10:35:39 +0000 (12:35 +0200)]
[flatc][docs] Document rounding behavior of floats in JSON output (#5397)
* [docs] Added an example on how to convert a FlatBuffer binary to JSON
Slightly adjusted section on "Using flatc as a conversion tool".
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
* [docs] Updated obsolete JSON data in example showing how to convert JSON to FlatBuffer binaries.
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
Will Stott [Sun, 9 Jun 2019 19:30:10 +0000 (20:30 +0100)]
Remove out-dated -S option from the flatc syntax. (#5398)
Looks like it's an older syntax for --strict-json which was long-ago removed in https://github.com/google/flatbuffers/commit/
d38b9af243d8dcfc53ab69c79e0ce404759240d4
jean-airoldie [Fri, 7 Jun 2019 21:06:21 +0000 (17:06 -0400)]
[rust] Use read_scalar_at where possible (#5385)
This slightly improves readability.
jean-airoldie [Thu, 6 Jun 2019 21:09:58 +0000 (17:09 -0400)]
[rust] Derive Eq + PartialEq on FieldLoc and FlatBufferBuilder (#5394)
Ashwin Ramaswami [Wed, 5 Jun 2019 18:24:29 +0000 (11:24 -0700)]
fix typo (#5384)
* fix typo
* fix typo
mugisoba [Sun, 2 Jun 2019 19:49:27 +0000 (04:49 +0900)]
[bfbs] fix deserializing nested struct (#5383)
Vladimir Glavnyy [Sun, 2 Jun 2019 19:36:49 +0000 (02:36 +0700)]
Fix multi-line comments for cpp enums (#5345) (#5346)
- fix CSharp comments generation
- fix Python comments generation
- fix Lua comments generation
- fix PHP comments generation
- fix Dart comments generation
- add brief description of Color enum
- add multi-line comments to the Monster:Color
Alexander Gallego [Fri, 31 May 2019 20:43:30 +0000 (13:43 -0700)]
c++: Add command line option to add extra includes to gen files (#5360)
* c++: Add command line option to add extra includes to gen files
Fixes #5351
We have an ability to pass custom types for strings, allocators, etc
but have no way to tell the generator to include the classes in gen code
* c++: remove std::strtok for std::string methods. passes msvc compile
* generate_code.sh: add --cpp-includes to the test gen script
* tests:generate.bat: update code gen scripts w/ --cpp-includes
* cpp: use command line parsing for extra includes
s/--cpp-includes/--cpp-include/g
Simplify command line parsing of includes by using a std::vector.
* cpp: idl.h: move std::vector for cpp_includes as the last member
msvc does not understand initalization list on our CI server
* cpp:msvc: CI fails on for-range loops
* cpp:codegen: fix error reporting on flatcc
* as per code review: remove unwated --cpp-include in the
tests/generate_code.{sh,bat}
Wouter van Oortmerssen [Fri, 31 May 2019 20:00:55 +0000 (13:00 -0700)]
Break internal Java/C# APIs
This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368
Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
Wouter van Oortmerssen [Fri, 31 May 2019 18:29:09 +0000 (11:29 -0700)]
Enforce matching version in Java and C#.
Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
360 CodeSafe [Fri, 31 May 2019 00:50:21 +0000 (08:50 +0800)]
Dereference of null pointer #5353 (#5376)
add an assert to make sure that `key_field` is not a null pointer.
mugisoba [Thu, 30 May 2019 23:15:50 +0000 (08:15 +0900)]
[C#] add FlatBuffersBuilder.CreateSharedString (#5372)
emkornfield [Thu, 30 May 2019 23:13:34 +0000 (16:13 -0700)]
[C++] Fix Undefined behavior for zero length vectors (#5355)
* Fix Undefined behavior for zero length vectors
* Change fix for UBSan
iceboy [Thu, 30 May 2019 23:02:57 +0000 (16:02 -0700)]
Rename AnyUniqueAliases.T to AnyUniqueAliases.TS to avoid naming conflict (#5362)
Marc Butler [Thu, 30 May 2019 22:57:41 +0000 (08:57 +1000)]
Generate FlagsAttribute for Csharp (#5370)
For schema enums with the bit_flags attribute, generate the
corresponding System.FlagsAttribute in generated Csharp code.
aardappel [Thu, 23 May 2019 02:42:13 +0000 (19:42 -0700)]
Lobster: added builder API for tables
aardappel [Wed, 22 May 2019 23:01:51 +0000 (16:01 -0700)]
Lobster documentation fixes
aardappel [Wed, 22 May 2019 22:55:28 +0000 (15:55 -0700)]
Made Lobster builder offsets strongly typed
aardappel [Wed, 22 May 2019 22:28:16 +0000 (15:28 -0700)]
Made Lobster API use strongly typed enums
aardappel [Wed, 22 May 2019 18:48:10 +0000 (11:48 -0700)]
Fixed Lobster implementation to work with latest language features
aardappel [Wed, 22 May 2019 01:54:26 +0000 (18:54 -0700)]
Fixed warnings in idl_gen_go.cpp
Siddhartha Bagaria [Tue, 21 May 2019 21:48:51 +0000 (14:48 -0700)]
[Go] Public visibility for gazelle default target (#5361)
jonsimantov [Tue, 21 May 2019 21:40:33 +0000 (14:40 -0700)]
Change usage of std::string's .at() to more widely-compatible []. (#5365)
Siddhartha Bagaria [Tue, 21 May 2019 00:16:48 +0000 (17:16 -0700)]
Go bazel default target for gazelle (#5358)
David Reiss [Mon, 20 May 2019 21:46:36 +0000 (14:46 -0700)]
[Go] Change two more sites to use enum types (#5359)
Fixes #5357 (regression introduced by #5235)
David Cowan [Mon, 20 May 2019 21:01:44 +0000 (14:01 -0700)]
Added a CPP UnPackSizePrefixed<struct_name> generated helper function (#5350)
* Added a cpp UnPackSizePrefixed<struct_name> generated helper function
Missing helper function added to the cpp API generator for unpacking size prefixed structures
* Added generated test files
David Reiss [Fri, 17 May 2019 19:41:39 +0000 (12:41 -0700)]
[Go] Make enums into real types, add String() (#5235)
* [Go] Make enums into real types, add String()
This changes the generated code for enums: instead of type aliases,
they're now distinct types, allowing for better type-checking. Some
client code may have to be changed to add casts.
Enum types now have a String() method, so they implement fmt.Stringer.
An EnumValues map is now generated, in addition to the existing
EnumNames map, to easily map strings to values.
Generated enum files are now gofmt-clean.
Fixes #5207
* use example.ColorGreen explicitly
* use valid enum value in mutation test, add new test for "invalid" enum
* add length check and comment
Siarhei Fiedartsou [Thu, 16 May 2019 18:56:22 +0000 (21:56 +0300)]
Add support for IAR compiler (#5347)
mmoscicki2 [Thu, 16 May 2019 18:49:01 +0000 (20:49 +0200)]
Fix reverse_iterator in Vector and tests (#5344)
Before this commit tests for iterators passed, even if the code inside
the loop has not been executed.
Björn Harrtell [Thu, 16 May 2019 18:43:31 +0000 (20:43 +0200)]
[JS/TS] Size prefix support (#5326)
* WIP size prefix support
* Consider size prefix in overloaded variant
* Work on code gen
* Disabled helper functions in code gen
* Enabled helper functions in code gen
* Fix size prefixed test
* Fix bad function call
* Add SIZE_PREFIX_LENGTH
* Fix review comments
iceboy [Mon, 13 May 2019 17:10:14 +0000 (01:10 +0800)]
[Go] Generate imports with fixed order (#5340)
* use fixed order for golang imports
* grumble
Vladimir Glavnyy [Thu, 9 May 2019 17:15:29 +0000 (00:15 +0700)]
Add detection of strtoull_l function (#5333) (#5337)
Vladimir Glavnyy [Thu, 9 May 2019 17:10:10 +0000 (00:10 +0700)]
Set default CRTReportMode for the `flatc` target (#5336)
* Set default CRTReportMode for the `flatc` target
* Add util.cpp to GRPC test target
* Fix path to util.h
Vladimir Glavnyy [Thu, 9 May 2019 17:07:38 +0000 (00:07 +0700)]
Make Monster's Color unsigned (#5318)
- update C++ monster_test::Color to unsigned type
- update Go Color:ubyte in the go_test.go
- add workaround for unsigned enum in java test
- sync generate.bat and generate.sh
Vladimir Glavnyy [Thu, 9 May 2019 17:05:21 +0000 (00:05 +0700)]
Fix out-of-range error (MSVC2010) in idl_gen_dart.cpp (#5335)
-- MSVC2010 doesn't support indexed access to \0-terminator.
Will Stott [Wed, 8 May 2019 19:42:20 +0000 (20:42 +0100)]
[Python PyPI] Added classifiers and more links. Fixes typo and #5215 (#5272)
Malthe Borch [Mon, 6 May 2019 22:00:02 +0000 (22:00 +0000)]
Use a hash table to index existing vtables (#5314)
* Use a hash table to index existing vtables
This allows for quick deduplication even in situations where there
might be thousands of vtables due to 'combinatoric explosion'.
This fixes issue #5301.
* Refactor 0-offset trimming
* Improve deduplication benchmark
The routine now generates a set of realistic logical layouts and
uses a timer function that randomly picks a layout for each iteration.
The benchmark runs in batches of # of logical layouts = 1, 10, 100, 1000.
(Note that due to alignment, the actual number of vtables is usually slightly
higher.)
Vladimir Glavnyy [Mon, 6 May 2019 19:27:04 +0000 (02:27 +0700)]
Add monster_extra files to Bazel cc_test section (#5321)
- add monster_extra.fbs
- add monsterdata_extra.json