1. 21 Feb, 2019 4 commits
  2. 19 Feb, 2019 4 commits
  3. 15 Feb, 2019 2 commits
  4. 14 Feb, 2019 4 commits
  5. 11 Feb, 2019 4 commits
  6. 08 Feb, 2019 1 commit
  7. 07 Feb, 2019 1 commit
  8. 05 Feb, 2019 1 commit
  9. 04 Feb, 2019 2 commits
    • Travis Staley's avatar
      Changing array to be an associative array so that the Name function can work… · 31e34faa
      Travis Staley authored
      Changing array to be an associative array so that the Name function can work with non-sequential enums as well as those beginning at something other than zero. (#5151)
      
      Also including the resulting changes in php files.
      31e34faa
    • Jon Kunkee's avatar
      Only use __movsb on architectures that support it (#5147) · 4d98faa5
      Jon Kunkee authored
      With the introduction of Windows 10 on ARM (ARM64), code that assumes
      that Windows targets are always x86 or x86_64 targets needs to be
      updated.
      
      The hot function ReadUInt64 has been optimized in MSVC builds using the
      compiler intrinsic __movsb. Since this does not exist on ARM64 Windows,
      this change uses the pure C++ path that other platforms use instead.
      4d98faa5
  10. 29 Jan, 2019 1 commit
  11. 28 Jan, 2019 1 commit
  12. 24 Jan, 2019 5 commits
  13. 17 Jan, 2019 3 commits
  14. 14 Jan, 2019 3 commits
  15. 07 Jan, 2019 3 commits
    • Vladimir Glavnyy's avatar
    • Vladimir Glavnyy's avatar
      Add `NaN` and `Inf` defaults to the C++ generated code. (#5102) · dd288f71
      Vladimir Glavnyy authored
      * Add `NaN` and `Inf` defaults to the C++ generated code.
      
      * Refactoring: add FloatConstantGenerator
      
      * Refactoring-2:
      
      - remove isnan checking for all float/double values
      - add most probable implementation of virtual methods of FloatConstantGenerator
      
      * Add conditional (FLATBUFFERS_NAN_DEFAULTS) isnan checking
      dd288f71
    • Yong Tang's avatar
      Add repository name to build_defs.bzl (#5104) · 155c5590
      Yong Tang authored
      In flatbuffers, build_defs.bzl has been updated to have the
      bazel rule `flatbuffer_cc_library` defined. Therefore, it should
      be possible to build another application and using `flatbuffer_cc_library`
      directly (by `load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")`)
      
      However, when I tried to do the above, I saw the following errors in bazel:
      ```
      ERROR: /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/arrow/BUILD.bazel:12:1: in deps attribute of cc_library rule @arrow//:arrow_format: target '@arrow//:runtime_cc' does not exist. Since this rule was created by the macro 'flatbuffer_cc_library', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/com_github_google_flatbuffers/build_defs.bzl:216:16
      ```
      
      The reason for the bazel error was that `//:runtime_cc` and `//:flatc` does not have
      the repo name prefixed.
      
      By prefix `` the above bazel build error could be resolved.
      
      This fix should help other programs to use flatbuffers directly through bazel.
      Signed-off-by: 's avatarYong Tang <yong.tang.github@outlook.com>
      155c5590
  16. 28 Dec, 2018 1 commit
    • Robert's avatar
      [Go] Namespaced imports fix (#5097) · 0eb7b3be
      Robert authored
      Track and emit required FlatBuffers namespace imports in generated Go code.
      
      Update Go code generator by moving most functionality into the generator class, to facilitate namespace tracking. (Note that the git diff in this combined commit may appear large due to this refactoring, but very little code was actually changed.)
      Update Go code generator by tracking namespace imports when generating FlatBuffers code.
      Update Go code generator by emitting package imports to correctly reference code in other FlatBuffers namespaces.
      Create Go test that checks the usage of InParentNamespace objects (as defined in the example schema).
      Create Docker test that checks the Go language port.
      Fixes #4883
      Fixes #3927
      
      Individual commits:
      
      * remove "static" from soon-to-be method functions
      * move almost all functions into class as methods
      * set current namespace and emit package names if needed
      * track imported namespaces
      * parent namespaces work
      * docker test for go ^1.11
      * update base image name for go docker test
      * remove cerr debugging
      * formatting fixes
      * re-run generate_code.sh
      * explicitly test namespace imports and usage
      0eb7b3be