Alexey Geraskin
149fb0b890
[C++] Keep only one optional parameter to compile_flatbuffers_schema_to_cpp_opt
2019-07-19 13:31:27 +03:00
Alexey Geraskin
e059dcaa58
[C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types Part 2
2019-07-17 18:18:13 +03:00
Alexey Geraskin
9522970c5d
Update BUILD file for bazel, attempt 6
2019-07-17 17:32:13 +03:00
Alexey Geraskin
79bb1221b2
Update BUILD file for bazel, attempt 5
2019-07-17 17:30:42 +03:00
Alexey Geraskin
e3f75ca9e1
Update BUILD file for bazel, attempt 4
2019-07-17 17:26:18 +03:00
Alexey Geraskin
e381bb1d70
Update BUILD file for bazel, attempt 3
2019-07-17 17:23:29 +03:00
Alexey Geraskin
945e333e60
[C++] Workaround for MSVC 2010 for the issue with std::vector and explicitly aligned custom data types
2019-07-17 17:11:44 +03:00
Alexey Geraskin
0a446840d4
Update BUILD file for bazel, attempt 2
2019-07-17 15:44:27 +03:00
Alexey Geraskin
e4740a3124
[C++] remove "= default" from constructor to support old compilers
2019-07-17 15:07:09 +03:00
Alexey Geraskin
5bafa33690
[C++] Add generated native_type_test_generated.h and fix arguments for flatc according to CMakeList
2019-07-17 14:55:19 +03:00
Alexey Geraskin
73b64d9caa
Update BUILD file for bazel
2019-07-17 14:08:36 +03:00
Alexey Geraskin
c887c71ac6
[C++] update CMakeLists to compile native_type_test.fbs properly
2019-07-17 14:04:44 +03:00
Alexey Geraskin
3db95d6131
[C++] Add flatc compilation for native_type_test.fbs
2019-07-16 18:46:40 +03:00
Alexey Geraskin
0a4bf1d6d3
[C++] Add unit test for native_type usage
2019-07-16 18:20:21 +03:00
Alexey Geraskin
8525b984ce
[C++] remove static_cast expression
2019-07-16 13:30:16 +03:00
jean-airoldie
db972be264
[rust] Ran rustfmt against library code ( #5389 )
2019-07-09 13:41:51 -07:00
Vladimir Glavnyy
e304f8c115
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
2019-07-08 11:22:56 -07:00
Thanabodee Charoenpiriyakij
47c7aa0361
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.
2019-07-01 11:42:00 -07:00
Vladimir Glavnyy
7a63792929
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
2019-07-01 11:38:21 -07:00
Andrew Noyes
7d7d796cd0
Fix undefined behavior. Closes #5422 ( #5423 )
...
* Fix undefined behavior. Closes #5422
* Move check into callers of make_space
2019-06-27 14:11:31 -07:00
Edward
550b386995
Update Utf8.java: more detailed exception message ( #5421 )
...
Provide more detailed exception message for malformed 2 byte utf8 character
2019-06-27 12:19:57 -07:00
Adrian Perez
5479adc80f
Fix for FLATBUFFERS_PREFER_PRINTF writing zero-length strings ( #5418 )
2019-06-27 09:23:13 -07:00
Vladimir Glavnyy
b7012484f3
Set C# Struct/Table visibility to public ( #5381 ) ( #5416 )
2019-06-24 17:51:04 -07:00
Bryan Furia
92e9f33036
Don't check ForceDefaults when adding Offfset values ( #5415 )
2019-06-24 17:49:53 -07:00
Wouter van Oortmerssen
ff1a22a05f
Fixed broken Utf8Old.java
...
This would not correctly encode/decode strings when substituted for
the default Utf8Safe.java
Change-Id: Ib303697663b5b8cbf6888492f5255b2a45384c04
2019-06-24 16:54:28 -07:00
Bryan Furia
9fb195cce8
Fix generating nested Flatbuffer accessors when they cross namespaces ( #5414 )
2019-06-24 11:46:00 -07:00
Austin Schuh
7836e65dd4
Fix compatability with Bazel 0.27 ( #5412 )
...
rules_go was too old and using deprecated features. Upgrade it.
2019-06-20 10:25:41 -07:00
Wouter van Oortmerssen
123c7a4890
Updated missing generated code for PR #5313 (fixed arrays)
...
Change-Id: I249140119e6241beb5aec5670d0e5ccddc8f5251
2019-06-20 10:21:10 -07:00
svenk177
e635141d5b
Add support for fixed-size arrays ( #5313 )
2019-06-18 00:15:13 +02:00
Vladimir Glavnyy
0d2cebccfe
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
2019-06-17 19:16:21 +02:00
John Luxford
a80db8538c
[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
2019-06-14 17:47:07 +02:00
John Luxford
a6be1d0d74
[Go] Fix namespaces on enums ( #5406 )
2019-06-13 20:25:03 -07:00
Tiger Caldwell
a7e20b1996
Excluded crtdbg.h from non-MSVC compilation ( #5401 )
2019-06-13 11:58:40 +02:00
Michael Seifert
4eb3efc221
[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 >
2019-06-12 12:35:39 +02:00
Will Stott
a807fa9567
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 d38b9af243
2019-06-09 20:30:10 +01:00
jean-airoldie
b80ad7e439
[rust] Use read_scalar_at where possible ( #5385 )
...
This slightly improves readability.
2019-06-07 14:06:20 -07:00
jean-airoldie
16aef8ac0d
[rust] Derive Eq + PartialEq on FieldLoc and FlatBufferBuilder ( #5394 )
2019-06-06 14:09:58 -07:00
Ashwin Ramaswami
b59a1ca2f8
fix typo ( #5384 )
...
* fix typo
* fix typo
2019-06-05 19:24:29 +01:00
mugisoba
4fdfe0d468
[bfbs] fix deserializing nested struct ( #5383 )
2019-06-02 12:49:27 -07:00
Vladimir Glavnyy
95004218f7
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
2019-06-02 12:36:49 -07:00
Alexander Gallego
bc7ede8fb3
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}
2019-05-31 13:43:30 -07:00
Wouter van Oortmerssen
b652fcc3a7
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
2019-05-31 13:00:55 -07:00
Wouter van Oortmerssen
c978b9ef1f
Enforce matching version in Java and C#.
...
Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
2019-05-31 12:15:19 -07:00
360 CodeSafe
3a88e1031b
Dereference of null pointer #5353 ( #5376 )
...
add an assert to make sure that `key_field` is not a null pointer.
2019-05-30 17:50:21 -07:00
mugisoba
51dd733ba4
[C#] add FlatBuffersBuilder.CreateSharedString ( #5372 )
2019-05-30 16:15:50 -07:00
emkornfield
79f0df3dfc
[C++] Fix Undefined behavior for zero length vectors ( #5355 )
...
* Fix Undefined behavior for zero length vectors
* Change fix for UBSan
2019-05-30 16:13:34 -07:00
iceboy
9d92fd92e1
Rename AnyUniqueAliases.T to AnyUniqueAliases.TS to avoid naming conflict ( #5362 )
2019-05-30 16:02:57 -07:00
Marc Butler
93f74c0363
Generate FlagsAttribute for Csharp ( #5370 )
...
For schema enums with the bit_flags attribute, generate the
corresponding System.FlagsAttribute in generated Csharp code.
2019-05-30 15:57:41 -07:00
aardappel
43dbac5d25
Lobster: added builder API for tables
2019-05-22 19:42:13 -07:00
aardappel
53ea1ab1bd
Lobster documentation fixes
2019-05-22 16:01:51 -07:00