Wouter van Oortmerssen
41395d981d
Merge pull request #3707 from evolutional/vs-gitignore
...
Added Visual Studio transient files to .gitignore
2016-01-19 18:01:34 -08:00
Wouter van Oortmerssen
bf07c37a53
Merge branch 'master' of https://github.com/google/flatbuffers
2016-01-19 15:56:26 -08:00
Wouter van Oortmerssen
2ab7ebc82b
Merge pull request #3510 from jaakristioja/patch-1
...
Fixed comment typo
2016-01-19 15:36:45 -08:00
Wouter van Oortmerssen
d75d29e2fe
Merge branch 'master' of https://github.com/google/flatbuffers
2016-01-19 14:10:49 -08:00
Wouter van Oortmerssen
049f3f7907
Added support for parsing JSON null value.
...
These cause the field in question to be skipped.
Bug: 16550393
Change-Id: Id05104e89818ee773b8a91fdcc86e18061b9a82f
Tested: on Linux.
2016-01-19 14:05:27 -08:00
Wouter van Oortmerssen
e848137ded
Added min/max values for enums/unions.
...
Bug: 21642898
Change-Id: Ifaf0b3c4274fe30ef29507ba1c1216d700efe85b
Tested: on Linux.
2016-01-19 14:05:27 -08:00
Wouter van Oortmerssen
f8c1980fdf
Added schema evolution examples to the docs.
...
Bug: 26296711
Change-Id: I225067d82ac0f8bd71b2b97b1672517ca86cc3b9
Tested: on Linux.
2016-01-19 12:29:53 -08:00
Wouter van Oortmerssen
7d70082590
Merge pull request #3706 from evolutional/fix-3506
...
Check (& skip) of the utf-8 byte order mark
2016-01-19 11:10:07 -08:00
Wouter van Oortmerssen
8472b5f224
Merge pull request #3513 from evolutional/fix-3500
...
Java/C#: generation of typed helpers when using nested_flatbuffers
2016-01-19 10:40:02 -08:00
Wouter van Oortmerssen
6136dd490a
Merge pull request #3498 from ncpenke/gcc-4.4.3-support
...
Gcc 4.4.3 support
2016-01-19 10:27:57 -08:00
Wouter van Oortmerssen
42c20d7a69
Make flatc check for binary files to avoid accidental parsing.
...
Binary file arguments to flatc have to be preceded by -- to
identify them, forgetting this however results in them being
attempted to be parsed as schema/json, with cryptic errors.
This instead gives an error if 0 bytes are contained in your
text file.
Bug: 22069056
Change-Id: I226bf651dcb016f18d7c8ffadcf23466a1fc0b87
Tested: on Linux.
2016-01-08 13:10:25 -08:00
Wouter van Oortmerssen
63b526db52
Ensured code is not generated directly from .proto files.
...
The parser state generated from the .proto conversion process is
not exactly the same as what you get by parsing the generated
schema, which can cause problems. This check enforces that you
first convert the .proto, then generate code from the new schema.
Change-Id: I04b53af9288d87e256d1cc109388332fefb3a09f
Tested: on Linux.
2016-01-08 11:39:56 -08:00
Wouter van Oortmerssen
514d274a45
Added android static library target for text parsing/generation etc.
...
Change-Id: If24e3eea90cef2a0d6a9d98fb503d2e3ec34ceed
Tested: on Linux.
2016-01-06 17:48:19 -08:00
Wouter van Oortmerssen
6beafd14e0
Updated docs to point to benchmark source code location.
...
Change-Id: If4c8fac6a421ac6436cab0dd7a0ae822a32e90bf
2016-01-06 16:51:00 -08:00
Wouter van Oortmerssen
586fdee89b
Merge pull request #3494 from parnic/fix-vs2012-static-analysis
...
Fixed MS static analysis warnings
2016-01-06 12:34:08 -08:00
Wouter van Oortmerssen
316854c26f
Merge pull request #3495 from parnic/fix-reflection-vs2012-warnings
...
Fixed warning building in VS2012
2016-01-06 12:03:40 -08:00
Wouter van Oortmerssen
6532bfce34
Merge pull request #3493 from parnic/support-platforms-without-realpath
...
Fix build for platforms not supporting realpath
2016-01-06 11:52:37 -08:00
Wouter van Oortmerssen
56f9b2d142
Merge pull request #3492 from parnic/fix-vs2012-warnings
...
Fix vs2012 warnings
2016-01-06 09:39:23 -08:00
Wouter van Oortmerssen
a6a38f6035
Merge branch 'master' of https://github.com/google/flatbuffers
...
Fixed conflicts and added missing generated files.
Change-Id: I4321c798543292d814c2c9e8b238c203b7526c7b
2016-01-04 13:06:19 -08:00
Wouter van Oortmerssen
4e4a5142fb
Clarified binary encoding with an example.
...
Change-Id: I60c900a2f7cbd88fe264f7b0dc78ef86b1580655
Tested: in Chrome.
2016-01-04 09:53:21 -08:00
Wouter van Oortmerssen
451272b618
Made error checking macros less prone to clashes.
...
Change-Id: Ieb252ce01446551699d935507bc95ee286fe1ddd
Tested: on Linux.
2015-12-29 16:33:00 -08:00
Wouter van Oortmerssen
8f13c828f5
Merge pull request #2776 from ncpenke/skip-unknown-json-fields
...
Fix #2775 : Add parser option to skip unknown JSON fields
2015-12-29 10:29:11 -08:00
Wouter van Oortmerssen
e6240f4039
Merge pull request #2790 from chobie/php-table-fix
...
(PHP) fixes getting indirect table, also fixes getInt method on 32bit machine
2015-12-29 10:25:21 -08:00
Wouter van Oortmerssen
1891537236
Fixed reflection setting string not changing size field.
...
Change-Id: I3c3e88a79667d1733b6c47e43b55d8b2604ca8e2
Tested: on Linux.
2015-12-21 16:20:03 -08:00
Wouter van Oortmerssen
d7d527d154
Merge branch 'master' of https://github.com/google/flatbuffers
2015-12-21 14:43:48 -08:00
Wouter van Oortmerssen
995ee86a6e
Added an IsFieldPresent helper function.
...
This is implemented as a template function, since Table::CheckField
is not reachable by subclasses of Table (private base class).
Change-Id: I1ed4d47ce7cb672460ccab61cf7442eb9136b0f1
Tested: on Linux.
Bug: 26273432
2015-12-21 12:17:59 -08:00
Wouter van Oortmerssen
40a33b1d06
Replaced exception handling in the parser with error checking.
...
This to allow the code to run on a greater range of build
configurations (that don't allow exceptions/RTTI).
If anyone ever doubts the usefulness of exception handling,
please show them this commit.
Change-Id: If7190babdde93c3f9cd97b8e1ab447bf0c81696d
Tested: on Linux.
2015-12-21 12:17:59 -08:00
Wouter van Oortmerssen
b974e95ce4
Merge pull request #2601 from AaronCritchley/patch-1
...
Improving the README by linking to the SO tag, and changing SO wording.
2015-12-16 09:59:22 -08:00
Wouter van Oortmerssen
a9909a0c18
Made sure all namespace test files get generated.
...
Also included them in the C++ test.
Change-Id: Ib0c8470f0aacdf16616c27494abdda57a010195d
Tested: on Linux.
2015-12-14 16:15:43 -08:00
Wouter van Oortmerssen
2ce5d6c2b6
Merge pull request #2090 from evolutional/cs-perf-string
...
C# - Performance optimizations
2015-12-14 15:16:46 -08:00
Wouter van Oortmerssen
4dcaec7938
Fixed root_type not accepting namespaced types.
...
Change-Id: I272f377742cc0a2c1bfccaa641b54eb9a8c762b6
Tested: on Linux.
2015-12-09 16:41:12 -08:00
Wouter van Oortmerssen
c44bc6a719
Merge branch 'master' of https://github.com/google/flatbuffers
2015-12-09 12:57:12 -08:00
Wouter van Oortmerssen
6fba6b6e71
Fixed compiler warnings for cast to bool in generated code.
...
Change-Id: I7727aeb478feb23d8ef66fd1ba9499b142b3ea7d
Tested: on Linux.
2015-12-09 12:56:24 -08:00
Wouter van Oortmerssen
96cd275603
Merge pull request #288 from mfcollins3/csharp-byte-buffer
...
Add Get Bytes Method Generator for C#
2015-12-07 17:35:57 -08:00
Wouter van Oortmerssen
42b48bd55f
Merge pull request #776 from belldon/bytebuffer_pos_fix
...
Extend C# ByteBuffer Put method fix to unsafe methods
2015-12-07 16:19:05 -08:00
Wouter van Oortmerssen
8bb45dc0a6
Merge pull request #1029 from belldon/vtable_reuse
...
Update C# FlatBufferBuilder to reuse vtable array
2015-12-07 14:42:04 -08:00
Wouter van Oortmerssen
8e6758d205
Merge pull request #608 from evolutional/master
...
Fix to #360 - Fully qualified names outside of current NS
2015-12-07 10:33:38 -08:00
Wouter van Oortmerssen
163d04a5d2
Merge pull request #778 from armen/master
...
Correct the max/min signed/unsigned 32-bit int
2015-12-07 10:27:27 -08:00
Wouter van Oortmerssen
b0d5bb1c4b
Fixed language for generators not being set correctly.
...
Change-Id: I36c1f05efa836b32635e3274ac0ba976a8961bdd
Tested: on Linux.
2015-12-07 09:53:04 -08:00
Wouter van Oortmerssen
45bda6e08d
Added --gen-all to generate code for a schema and all its includes.
...
Also refactored the way options are stored.
Change-Id: I709ac908cd2aba396c9c282725cf1d42ccce0882
Tested: on Linux.
2015-12-04 09:44:31 -08:00
Wouter van Oortmerssen
47478117d8
Fixed implicit dereference in flatc.
...
Change-Id: If2e62a325b47399561b4c20d2def55ede4831d19
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
3881bbd651
Multiple schemas parsed by flatc are now parsed independently.
...
It used to be such that later schemas could depend on earlier
schemas. This was a convenience from days before include files
were implemented. Nowadays they cause subtle bugs rather than being
useful, so this functionality has been removed.
You now need to explicitly include files you depend upon.
Change-Id: Id8292c3c621fc38fbd796da2d2cbdd63efc230d1
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
7b06041a7c
C++ generated code now has constants for vtable offsets.
...
Besides making the generated code looking a lot more readable,
it also allows you to use these offsets in calls to
Table::CheckField, to see if a field is present in a table.
Change-Id: I1b4cc350c4f27c4e474c31add40c701ef4ae63b2
Tested: On Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
3fc5387db7
Made C++ generated code use "bool" instead of uint8_t wire type.
...
Change-Id: I5756d15a758429ca67456264842017063d1f755e
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
fc1cfd287a
Allow vectors to be aligned beyond their natural type.
...
Change-Id: I09ade6b688a6b97d65fd832558917225d86c9118
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
54dc4395b9
Java builder now checks if buffer was finished upon access.
...
Also checks for nesting of objects in vector construction.
This avoids common errors in FlatBuffer construction.
Change-Id: I5507c5d767684e20e94883a92448f05acefba4d6
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
d7b4a31e93
Added long form options for all generators (--cpp etc.)
...
Short-form versions are still supported, but are deprecated.
Change-Id: I15f70ca8d69ba5790368205caa9603b65e1b7fff
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
b7d8c2af1a
Made generated C++ code respect gcc -Werror=shadow.
...
Change-Id: I17de0bcc462770124227a9967e2aab620467f6eb
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
1075c80e8a
Fixed crash related to flatc parsing duplicate input files.
...
Thanks @Chaosvex for reporting.
Change-Id: I73f60ab0bf875a3e0849eaec5f42f6d036881094
Tested: on Linux.
2015-12-02 11:12:39 -08:00
Wouter van Oortmerssen
947a5b4ea3
Merge pull request #353 from takaken1994/master
...
C++: Fixed generated header file cannot be compiled when the type of key is enum class
2015-11-25 13:40:00 -08:00
Wouter van Oortmerssen
e10b8d6f2a
Merge pull request #349 from belldon/enum-fix
...
Fixes issue #348 : C# vector of enums doesn't compile
2015-11-25 13:14:28 -08:00
Wouter van Oortmerssen
6775a0a941
Merge pull request #362 from chobie/fix-projectfile
...
Fix projectfile (VisualStudio, XCode) for development
2015-11-20 13:43:57 -08:00
Wouter van Oortmerssen
a7b5f92f51
Merge pull request #359 from proppy/move-build-fb
...
flatbuffers/cmake: move build_flatbuffers to a standalone file
2015-11-18 10:10:07 -08:00
Wouter van Oortmerssen
6266b4f122
Merge pull request #308 from chobie/php
...
Add support for PHP code.
2015-11-18 09:31:17 -08:00
Wouter van Oortmerssen
e4eb286483
Merge pull request #312 from chobie/unity-fix
...
C# Unity (.NET 3.5) can't cast enum default value.
2015-11-18 09:28:00 -08:00
Wouter van Oortmerssen
097797bf9f
Merge branch 'master' of https://github.com/google/flatbuffers
2015-11-16 14:10:16 -08:00
Wouter van Oortmerssen
f7d465f990
Merge pull request #344 from rw/py-builder-ergonomics
...
Python: Improve Builder user interface.
2015-11-16 09:07:31 -08:00
Wouter van Oortmerssen
3f1c4b41f6
Merge pull request #339 from chobie/net-add-bytebuffer-property-to-table
...
(C#) Add ByteBuffer property to Table
2015-11-11 10:07:51 -08:00
Wouter van Oortmerssen
9dc5d378b1
Updated supported languages in the docs.
...
Change-Id: I607f5f33b609c47fe32342f5e9d066f61f5546cd
2015-11-09 17:25:17 -08:00
Wouter van Oortmerssen
b0b39543de
Merge pull request #311 from chobie/dont-hide-function-parameter-vs2015
...
Don't hide function parameter
2015-11-09 09:22:30 -08:00
Wouter van Oortmerssen
3f79e05585
Added new documentation links.
...
Change-Id: Ib5234a97a863be08c3bb0f9329204bc3a7effccb
2015-11-06 09:51:19 -08:00
Wouter van Oortmerssen
4d7810424c
Allow structs to be parsed in JSON with out of order fields.
...
Also simplified the code and made it faster.
Change-Id: I1d83b1165a4a9a4380d1bfb5538769c012d2d367
Tested: on Linux.
2015-10-28 17:54:11 -07:00
Wouter van Oortmerssen
2107a7d514
Fixed assert in flatc converting to text.
...
Change-Id: Idac375b22aa9beaba162084cc3396f5536a4e721
Tested: on Linux.
2015-10-28 17:50:06 -07:00
Wouter van Oortmerssen
40b03519c1
Updated Xcode project for v7
2015-10-28 12:07:28 -07:00
Wouter van Oortmerssen
d236dea13d
Improved C++ asserts for nesting and not finishing buffers.
...
Change-Id: I82a392bd262b13e978df748bc54b7ac43aec1e15
Tested: on Linux.
2015-10-28 11:57:16 -07:00
Wouter van Oortmerssen
48ff729477
Added assert for referring to 0 offsets.
...
Change-Id: I7c04d934bfacd4aeaa2ba476b934dd3a62d4fc0e
Tested: on Linux.
2015-10-20 09:36:35 -07:00
Wouter van Oortmerssen
7c60937806
Added -M flatc flag to the documentation.
...
Change-Id: Ie19af91ec5bf0b65297cba58c124bceaa58fd73e
2015-10-19 17:05:42 -07:00
Wouter van Oortmerssen
ace304513f
Fixes for JS generator in Xcode
2015-10-19 16:05:39 -07:00
Wouter van Oortmerssen
9c9fce96c7
Vector of structs were not being verified correctly.
...
Because they are represented as `const T *` in the Vector template,
the sizeof(const T *) was accidentally used instead of sizeof(T).
Change-Id: Ib4dc73e1d21396ba2e30c84e5e229c4147204bb1
Tested: on Linux.
2015-10-19 14:11:13 -07:00
Wouter van Oortmerssen
525130765a
Merge pull request #257 from evanw/javascript
...
Add support for JavaScript code generation with Google Closure Compiler type annotations
2015-10-19 12:49:16 -07:00
Wouter van Oortmerssen
d890ef9e20
Merge pull request #298 from evolutional/master
...
Ported some of the python fuzz tests to C#
2015-10-19 11:11:05 -07:00
Wouter van Oortmerssen
9f69d79430
Merge pull request #296 from prideout/master
...
Fix minor typos in the Python documentation.
2015-10-19 10:40:16 -07:00
Wouter van Oortmerssen
94680f5483
Added support for imports and many other .proto features.
...
Change-Id: I6600021b7ec8c486794349511232c3e604421c5b
Tested: on Linux.
2015-10-13 14:01:55 -07:00
Wouter van Oortmerssen
b56add9520
Improved documentation with links to videos, articles and who uses it.
...
Change-Id: I62de6b7008e397a5043d47f014a7acd83ee64740
2015-09-28 10:49:01 -07:00
Wouter van Oortmerssen
2abe24b9dd
Made .proto parsing understand nested declarations.
...
Bug: 24401812
Change-Id: I196a03b8c5ef0bcd3c26178239c764e40ca1950d
Tested: on Linux.
2015-09-28 09:48:41 -07:00
Wouter van Oortmerssen
a35c32e30f
Merge pull request #282 from google/fix-277
...
Fix 32bit-system integer overflow (test only)
2015-09-25 14:54:50 -07:00
Wouter van Oortmerssen
ff9e539cc5
Merge pull request #280 from alexames/master
...
Removed call to pop_back on std::string.
2015-09-25 10:38:50 -07:00
Wouter van Oortmerssen
feb4816610
Fixed .proto translation making scalars into required fields.
...
Change-Id: If414d156b4e9bc7fead5f131823b2c419cdc4e2c
Tested: on Linux.
2015-09-25 09:21:31 -07:00
Wouter van Oortmerssen
811a5c3389
Merge pull request #274 from cogumbreiro/master
...
Fix an out-of bounds read when the element is bigger than the buffer.
2015-09-23 12:37:45 -07:00
Wouter van Oortmerssen
44261ccdf1
Merge pull request #271 from vijairaj/scoped-enums
...
Implemented option --scoped-enum for C++ generator
2015-09-16 10:14:49 -07:00
Wouter van Oortmerssen
169df65df4
Merge pull request #266 from kadirahq/fix-travis-osx
...
Fix before_install step on .travis.yml file for osx
2015-09-14 17:50:29 -07:00
Wouter van Oortmerssen
af1487bcfb
Clarified use of unions in C++.
...
Change-Id: I9654e0c6a45457c8e150f07dd5f7b39539266f9e
2015-09-14 11:00:12 -07:00
Wouter van Oortmerssen
dff07b6f31
Merge pull request #269 from teemuandersen/master
...
Add @SuppressWarnings("all") to generated Java classes
2015-09-11 14:23:53 -07:00
Wouter van Oortmerssen
01e06b69a5
Improved the speed of LoadFile() in debug mode.
...
Apparently, istreambuf_iterator has a lot of overhead.
Change-Id: I804f4e8f2b380b05e939edefe0e1e88cd10e920c
Tested: on Linux.
2015-09-09 12:56:23 -07:00
Wouter van Oortmerssen
782e05de55
Fixed Android builds on Windows (generated schema rules).
...
include.mk causes absolute paths to be generated, which doesn't
work on Windows (make doesn't like : in paths).
Change-Id: Ib06c9581620bde1e8452e0dd887d3986d517c4f5
Tested: on Windows, Linux.
2015-08-28 14:42:13 -07:00
Wouter van Oortmerssen
aeff09d724
Fixed a clang warning about signed shifts.
...
Change-Id: I7c2bf87972ee0ba6811d6ed42e13300bff90e36f
2015-08-26 16:47:59 -07:00
Wouter van Oortmerssen
d06b2736aa
Merge pull request #248 from aeneid/master
...
Added Java and C# mutators
2015-08-19 11:43:22 -07:00
Wouter van Oortmerssen
d97f628703
Clarified choice of types in Java/C# codegen.
...
Change-Id: I1f094f350145d13b12cbe367bae7c623cfbbd8d3
2015-08-19 11:08:53 -07:00
Wouter van Oortmerssen
a170b69d5d
Added authors to support.md
...
Change-Id: I8f12e60d29a1c587d991bf64011bdf4a4b0d7e5b
2015-08-14 14:07:54 -07:00
Wouter van Oortmerssen
201699288b
Added a platform / language / feature support matrix to docs.
...
This is just a start, will need to be extended.
Change-Id: I5a9ad671911942dcb83fdd2bae537deed751cbfd
2015-08-12 12:07:43 -07:00
Wouter van Oortmerssen
e9202d85bd
Add missing Python files from type cast commit.
...
Change-Id: I800119d8fe19f4c3e95772aba629ef8b2deb9e4b
2015-08-12 10:17:10 -07:00
Wouter van Oortmerssen
9a1ab5006f
Merge pull request #253 from mormegil-cz/issue-252
...
[Issue 252] Add type cast for default enum values in C#
2015-08-12 09:21:21 -07:00
Wouter van Oortmerssen
e151160560
Added a link to other FPL libraries to the main page.
...
Change-Id: I45362806df6d4eff0b0b7521b7caf42c2ec0515c
2015-08-05 17:32:14 -07:00
Wouter van Oortmerssen
986b52d849
Merge pull request #247 from stewartmiles/master
...
Clarified the use of the deprecated flatc --gen-includes flag.
2015-08-05 13:58:17 -07:00
Wouter van Oortmerssen
45cc503bbd
Changed maximum force_align to match the C++ code generator.
...
Change-Id: I7df2b0172f5de6f7bdbd8778361794004cd06062
Tested: on Linux.
2015-08-05 13:56:31 -07:00
Wouter van Oortmerssen
ad84b5b8fa
Fixed AddFlatBuffer using wrong buffer length.
...
Also made the Xcode project link.
Tested: on OS X.
2015-08-03 17:39:47 -07:00
Wouter van Oortmerssen
7101224d86
Reworked reflection.h to be more general.
...
e.g. support generic reading/writing from structs/vectors etc.
Change-Id: I2eb6e24db088a72da444d5c8df7e506e53d5bc2d
Tested: on Linux.
Bug: 22660837
2015-08-03 16:42:05 -07:00
Wouter van Oortmerssen
0e064e415b
Fixed small inaccurracies in the schema grammar.
...
Change-Id: I6e9e66c3d7d67c54617bc892f612b7341bebd7e0
2015-07-31 12:26:23 -07:00
Wouter van Oortmerssen
4998ad7365
Added support for adding new tables/strings to an existing FlatBuffer.
...
As part of the reflection support.
Change-Id: Ie0a8e233bca7dffa4cff7e564660035d97ff8902
Tested: on Linux.
Bug:22637258
2015-07-31 09:44:25 -07:00
Wouter van Oortmerssen
9a30d3d0df
Merge pull request #241 from RevenantX/master
...
[BREAKING CHANGE] Base type safety in C#. Clear FlatBufferBuilder in C#.
2015-07-29 11:36:03 -07:00