1. 18 Mar, 2019 2 commits
  2. 14 Mar, 2019 1 commit
  3. 11 Mar, 2019 5 commits
    • Wouter van Oortmerssen's avatar
      Made JS enum declarations compatible with google closure · 4f066c39
      Wouter van Oortmerssen authored
      Original change by: https://github.com/alexames
      
      Change-Id: Ib65bd02156d1c3637ed278a8334a2307caacaa44
      4f066c39
    • Wouter van Oortmerssen's avatar
      Disabled constexpr for hashing functions. · ca68d8b0
      Wouter van Oortmerssen authored
      This was incompatible with -Wc++98-c++11-compat on some platforms,
      due to local variables in the function.
      
      Change-Id: Idef510c2cefe944eef2e0656f5a219c2158063e6
      ca68d8b0
    • Vladimir Glavnyy's avatar
    • Randal Stevens's avatar
      Fix typo in dart documentation (#5230) · 73a648b6
      Randal Stevens authored
      73a648b6
    • Wouter van Oortmerssen's avatar
      [C++] Object API: document custom string type requirements, · eb2a81f7
      Wouter van Oortmerssen authored
      implement better custom string type constructor alternative
      for Unpack() and fix bug with vector of custom string types
      in Pack().
      
      Squashed commit of the following:
      
      commit e9519c647ef949b22756ed660839dd3af854881c
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Tue Mar 5 18:24:49 2019 +0100
      
          tests: regenerate code, reverts change to CreateVectorOfStrings().
      
      commit 117e3b0679209f2aa55cbee18c4036e7da4bd4b3
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Tue Mar 5 18:15:05 2019 +0100
      
          idl_gen_cpp.cpp: move clang-format on/off outside of declaration, so they are kept properly aligned automatically.
      
      commit 4791923806965637d5b13f7003329bfbb2fdf18b
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Tue Mar 5 18:11:40 2019 +0100
      
          idl_gen_cpp.cpp: full clang-format run with provided Google format file, enforce 80 lines width.
      
      commit 2f0402f9ff43b1af0a29806932e08e6d64373345
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Tue Mar 5 18:09:32 2019 +0100
      
          CppUsage: address requested changes.
          idl_gen_cpp.cpp: fix formatting, keep CreateVectorOfStrings for normal string cases.
      
      commit 371d4e0b7972a59e5cff418c44e4043c016ce56a
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Fri Mar 1 16:35:29 2019 +0100
      
          Fix compile error with a vector of non-std::strings. CreateVectorOfStrings() expects a vector of std::string types, but that's not always the case.
      
      commit 92b90d7f0fbcfc837a94aa06bedccec0f7b4bb62
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Fri Mar 1 16:15:36 2019 +0100
      
          Document requirement for custom string types to implement empty() and be constructible from std::string.
          Add new option --cpp-str-flex-ctor to construct custom string types not via std::string, but (char * + length).
      
      commit 28cb2e92d5b7684b5df5184da3a3fad2d0cda733
      Author: Luca Longinotti <luca.longinotti@inivation.com>
      Date:   Fri Mar 1 14:31:17 2019 +0100
      
          idl_gen_cpp.cpp: clang-format run, to better separate changes in content from formatting.
      
      Change-Id: I4887ba2f2c632b9e7a8c938659b088cd95690870
      eb2a81f7
  4. 09 Mar, 2019 1 commit
  5. 08 Mar, 2019 2 commits
    • Mathias Svensson's avatar
      4f10da8d
    • tymcauley's avatar
      Fix rust crate for big-endian targets (#5229) · 9e82ee25
      tymcauley authored
      Thanks for tackling this, @tymcauley !
      
      * big endian docker test -- wip
      
      * tweaks
      
      * tweaks
      
      * tweaks
      
      * docker tweaks
      
      * fix conditional compilation issues
      
      * reactivate other docker tests
      
      * try some more cross-platform config (from tymcauley)
      
      * Update tests/docker/languages/Dockerfile.testing.rust.big_endian.1_30_1
      Co-Authored-By: 's avatarrw <rw@users.noreply.github.com>
      
      * Update tests/docker/languages/Dockerfile.testing.rust.big_endian.1_30_1
      Co-Authored-By: 's avatarrw <rw@users.noreply.github.com>
      
      * Update tests/docker/languages/Dockerfile.testing.rust.big_endian.1_30_1
      Co-Authored-By: 's avatarrw <rw@users.noreply.github.com>
      
      * Resolved Rust warnings during big-endian builds.
      
      * Unify Rust test suites for x86 and MIPS builds.
      
      Note that I had to add four extra packages to the MIPS `Dockerfile`:
      `libexpat1`, `libmagic1`, `libmpdec2`, and `libreadline7`. For a reason
      I couldn't identify, even the simplest Rust MIPS binaries run with
      `qemu-mips` would fail with a segfault when run through this
      `Dockerfile`. After installing the `gdb-multiarch` package to attempt to
      debug the issue, the binaries ran successfully. I pared down the
      packages installed by `gdb-multiarch`, and these four packages are the
      minimum subset necessary to get Rust MIPS binaries running under
      `qemu-mips`.
      
      * Changed Rust tests to use `Vector`s instead of direct-slice-access.
      
      The direct-slice-access method is not available on big-endian targets,
      but `flatbuffers::Vector`s provide an array interface that is available
      on all platforms.
      
      * Resolved FooStruct endianness issues using explicit struct constructor.
      
      This more closely resembles how FlatBuffers structs are constructed in
      generated Rust code.
      
      * Added explanation of how `FooStruct` parallels generated struct code.
      
      Also collected duplicate implementations of `FooStruct` into a common
      location.
      9e82ee25
  6. 07 Mar, 2019 3 commits
    • Wouter van Oortmerssen's avatar
      Removed -Wc++98-compat-extra-semi for compatibility with older clang. · e237f53b
      Wouter van Oortmerssen authored
      Change-Id: I6dfadb5289a4396ad2f3d16baf1bdb99c7534174
      e237f53b
    • Austin Schuh's avatar
      Bazel ci (#5228) · 98be491e
      Austin Schuh authored
      * Stop building for Windows until the build passes
      
      ERROR: D:/b/bk-windows-java8-bd0z/bazel/flatbuffers/BUILD:123:1: Couldn't build file _objs/flatbuffers_test/test.obj: undeclared inclusion(s) in rule '//:flatbuffers_test':
      this rule is missing dependency declarations for the following files included by 'tests/test.cpp':
        'tests/monster_test_generated.h'
        'tests/monster_extra_generated.h'
      
      The files in tests are being found instead of the generated files since
      Windows doesn't have any sandboxing.  For now, let's disable the rules
      and come back to it.
      
      * Fix buildifier warnings
      
      Clean up docstrings and add a module docstring.
      98be491e
    • Wouter van Oortmerssen's avatar
      Fixed vector of union JSON parsing. · 71628dad
      Wouter van Oortmerssen authored
      This for some reason never had a test case, and was broken.
      
      Change-Id: If832f5eb8b6c5ba8a75257464892634b38719c55
      71628dad
  7. 06 Mar, 2019 2 commits
  8. 04 Mar, 2019 2 commits
  9. 28 Feb, 2019 1 commit
  10. 27 Feb, 2019 1 commit
    • naure's avatar
      Rust: Fix lifetime in union _as_ accessors (#5140) · 034275c6
      naure authored
      * Fix lifetime in union _as_ accessors
      
      In the accessors for union field, the return value is implicitly taking the lifetime of &self.
      This is irrelevant and prevents usages of the returned value, because it is needlessly bound to the parent field lifetime.
      
      This patch makes the return value inherit the lifetime of the data, like other methods do.
      034275c6
  11. 25 Feb, 2019 8 commits
  12. 22 Feb, 2019 1 commit
    • Brian Wellington's avatar
      Fix big-endian build. (#5205) · a1f14005
      Brian Wellington authored
      For some reason, Offset<T> is being considered a scalar, which
      causes EndianSwap to be passed an Offset<T>.  This doesn't work,
      as it does not support types with non-trivial constructors.  This
      change adds an overload to WriteScalar(), which works around this.
      a1f14005
  13. 21 Feb, 2019 5 commits
    • Eric Erhardt's avatar
      Remove byte* property in ByteBufferAllocator (#5191) · 0cdacdfb
      Eric Erhardt authored
      * Remove byte* property in ByteBufferAllocator.
      
      This allows consumers to read/write into native memory, but without
      having to always pin the managed `byte[]` when working with managed
      memory. This allows for users to not need to Dispose() ByteBuffers
      when they are using the default ByteArrayAllocator class.
      
      Instead, we use `Span<byte> GetSpan()` methods to get access to the
      underlying memory buffer.
      
      Fix #5181
      
      * Add a set of benchmark tests.
      
      * Add ReadOnly spans.
      
      This allows consumers to use ReadOnlyMemory<byte> as the backing storage
      for ByteBuffers, which is useful in read-only scenarios.
      
      * Run tests using ENABLE_SPAN_T in appveyor.
      
      * Fix FlatBuffers.Test.csproj to work on older MSBuild versions.
      
      * Change the test script to test UNSAFE_BYTEBUFFER
      
      * Address PR feedback.
      
      Remove IDisposable from ByteBuffer.
      
      * Respond to PR feedback.
      0cdacdfb
    • bwelling's avatar
      Improve endian detection. (#5204) · bb584420
      bwelling authored
      Add support for using __BYTE_ORDER__, to support platforms where g++
      doesn't explicitly define __BIG_ENDIAN__, like Solaris Sparc.
      bb584420
    • Marc Butler's avatar
      Add RPM packaging support (#5177) · 4567b131
      Marc Butler authored
      * Add RPM packaging support
      
      Using the existing PackageDebian as template add support for
      generating an rpm with the package target.
      
      * Restore debian package target
      
      Also add an option to advertise the fact.
      
      * Update package description
      
      C-n-p from README.md
      
      * Update rpm package maintainer
      4567b131
    • Kamil Rojewski's avatar
      Fixed vector of unions crash in java (#5190) · 8f8fb2b3
      Kamil Rojewski authored
      * Fixed vector of unions crash in java
      
      * Regenerated test code
      
      * Fixed windows tests
      8f8fb2b3
    • Efe Burak's avatar
      Added .net core project (#5187) · 69d761d1
      Efe Burak authored
      69d761d1
  14. 19 Feb, 2019 4 commits
  15. 15 Feb, 2019 2 commits