1. 12 May, 2017 4 commits
    • Wouter van Oortmerssen's avatar
      Made codegen always output a file, even on an empty schema. · c559eb45
      Wouter van Oortmerssen authored
      Previously, we had a check to simply skip such files, but this
      tends to make build systems unhappy.
      
      This only affects C++ and JS, since other language output per-class
      files.
      
      Change-Id: I54224642725bbafb9f6e1654ed3693e62ca9f7d7
      Tested: on Linux.
      c559eb45
    • Lawrence Chan's avatar
      [C++] Fix code gen indentation when empty Print (#4313) · 6a7ec85e
      Lawrence Chan authored
      * Fix C++ code gen indentation when empty Print
      
      * Also commit modified tests/monster_test.bfbs
      6a7ec85e
    • akamat-ibm's avatar
      Adding support for s390x (#4297) · 81ecc98e
      akamat-ibm authored
      * changes to support s390x
      
      * added flag for s390x
      
      * Adding support for Linux s390x
      81ecc98e
    • Per Grön's avatar
      C++/Go: Update gRPC related code to work with gRPC 1.3+ (#4305) · 9aeeddf5
      Per Grön authored
      * Don't fail the build on unused parameters
      
      gRPC headers have unused parameters so this breaks the test build.
      
      * Pull in updated compiler files from gRPC
      
      There have been some API breaks in gRPC lately. This commit
      pulls in the most recent version of the files in this repo
      that are just copied from gRPC.
      
      * Modify the gRPC files so that they can work with Flatbuffers
      
      The files taken from gRPC do not work out-of-the-box with Flatbuffers.
      This commit modifies them so that they work. Hopefully this commit
      will be able to serve as a guide or maybe even be cherry-picked on
      top of new versions of those files as newer versions from gRPC are
      pulled in.
      
      * Adjust the rest of Flatbuffers to work with the new gRPC
      
      * Change idl_gen_grpc.cpp to work with the new API
      * Add missing #include in flatbuffers/grpc.h
      * Run tests/generate_code.sh and check in the results
      * Don't link with grpc++_unsecure and (secure) grpc. That's just weird
      
      * Revert unrelated JS/TS test changes
      
      * Simplify compiler/config.h
      
      There is no need to import this file from gRPC. In fact, it probably
      makes sense to not do so, since it seems to be intended to have
      project specific configuration in it.
      
      * Don't emit C++ types in the Go gRPC code generator
      
      * Don't emit C++ #includes in generated gRPC code
      
      Before this PR, there was a Go-specific additional_includes method
      in schema_interface.h, which is shared with the gRPC repo. The
      additional parameter to FlatBufFile in idl_gen_grpc.cpp makes that
      unnecessary, which means we need less Flatbuffer-specific changes
      in gRPC.
      9aeeddf5
  2. 11 May, 2017 3 commits
  3. 10 May, 2017 7 commits
  4. 08 May, 2017 2 commits
    • 水樹素子's avatar
      [C++] Add grpc/streaming test and fix Deserialize (#4296) · 0920d663
      水樹素子 authored
      * [C++] Add delete msg->buf
      
      * [C++] Add grpc streaming test
      
      * Use free instead of delete
      
      * Refactoring grpctest
      0920d663
    • Heiko Becker's avatar
      Tweak fallthrough comments to get recognized by gcc7 (#4298) · bbb72f0b
      Heiko Becker authored
      GCC gained a new warning, -Wimplicit-fallthrough, which warns about
      implicitly falling through a case statement. The regular expressions
      used at the default level (-Wimplicit-fallthrough=3) don't match with
      a colon at the end. The comment also needs to be followed (after
      optional whitespace and other comments) by a 'case' or 'default'
      keyword, i.e. it will not be recognized with a '}' between the comment
      and the keyword.
      bbb72f0b
  5. 04 May, 2017 1 commit
  6. 01 May, 2017 1 commit
    • Kamil Rojewski's avatar
      Generating the most strict TS code possible (#4286) · 86777bd6
      Kamil Rojewski authored
      * Eclipse ignore
      
      * TypeScript support
      
      * Prefixing enums
      
      * Test results
      
      * Merged JS and TS generators
      
      * Fixed AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Changed TS flag to options struct
      
      * Storing options by value
      
      * Removed unneeded const
      
      * Re-export support for unions
      
      * Uint support
      
      * Casting bools to numbers for mutation
      
      * TS shell tests
      
      * Reverted generates js test file to original version
      
      * Backing up js tests and properly generating test data
      
      * Not importing flatbuffers for TS test generation
      
      * Not overwriting generated js for tests
      
      * AppVeyor test fixes
      
      * Generating the most strict TS code possible
      86777bd6
  7. 26 Apr, 2017 1 commit
    • Wouter van Oortmerssen's avatar
      Made the verifier catch zero-offsets. · 8b92122f
      Wouter van Oortmerssen authored
      Zero offsets are non-sensical in FlatBuffers (since offsets are
      relative to themselves) but were allowed by the verifier. This could
      cause buffers made up of all zeroes to be interpreted as correct
      buffers with an empty root object.
      
      Generally, not allowing such offsets will make the verifier more
      likely to catch problems earlier.
      
      Change-Id: I54010bea29721b326ff8e5348fcd9fe78e5e7506
      Tested: on Linux.
      8b92122f
  8. 24 Apr, 2017 2 commits
  9. 21 Apr, 2017 2 commits
    • Wouter van Oortmerssen's avatar
      Fix Android STLPort build. · f52ddfbd
      Wouter van Oortmerssen authored
      Change-Id: Iceca7b8b455c8463d9b82b928332a875dee3d19e
      f52ddfbd
    • Kamil Rojewski's avatar
      TS tests fixes (#4265) · 808b44f8
      Kamil Rojewski authored
      * Eclipse ignore
      
      * TypeScript support
      
      * Prefixing enums
      
      * Test results
      
      * Merged JS and TS generators
      
      * Fixed AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Changed TS flag to options struct
      
      * Storing options by value
      
      * Removed unneeded const
      
      * Re-export support for unions
      
      * Uint support
      
      * Casting bools to numbers for mutation
      
      * TS shell tests
      
      * Reverted generates js test file to original version
      
      * Backing up js tests and properly generating test data
      
      * Not importing flatbuffers for TS test generation
      
      * Not overwriting generated js for tests
      
      * AppVeyor test fixes
      808b44f8
  10. 20 Apr, 2017 2 commits
  11. 19 Apr, 2017 3 commits
  12. 18 Apr, 2017 4 commits
  13. 17 Apr, 2017 2 commits
    • Wouter van Oortmerssen's avatar
      Fixed clang needing union copy constructor. · 728bb64f
      Wouter van Oortmerssen authored
      Move constructors are present, which it should use instead.
      
      This is a temp fix to make it compile, but eventually we should
      generate a proper copy constructor just in-case people want to
      copy objects with unions.
      
      Tested on: Linux, OS X.
      
      Change-Id: Idf85419995c96f5959061882157541573e306083
      728bb64f
    • Jason Stubbs's avatar
      [C++] fix bounds checking on integer parsing (#4250) · a07f0d42
      Jason Stubbs authored
      * fix bounds checking on integer parsing
      
      the previous code was allowing 255 for int8_t, similar for int16_t
      and int32_t, and even negative values for unsignd types.
      
      this patch fixes bounds checking for 8-bit, 16-bit and 32-bit types.
      testing for both acceptable values and unacceptable values at the
      boundaries are also improved.
      
      bounds checking on 64-bit types isn't addressed by this patch.
      
      * fix 'unary minus operator applied to unsigned type, result still unsigned'
      
      * fix & placement
      a07f0d42
  14. 13 Apr, 2017 2 commits
  15. 12 Apr, 2017 2 commits
  16. 10 Apr, 2017 1 commit
    • Kamil Rojewski's avatar
      TypeScript support (#4232) · 28e7dbd3
      Kamil Rojewski authored
      * Eclipse ignore
      
      * TypeScript support
      
      * Prefixing enums
      
      * Test results
      
      * Merged JS and TS generators
      
      * Fixed AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Changed TS flag to options struct
      
      * Storing options by value
      
      * Removed unneeded const
      
      * Re-export support for unions
      
      * Uint support
      
      * Casting bools to numbers for mutation
      
      * TS shell tests
      
      * Reverted generates js test file to original version
      
      * Backing up js tests and properly generating test data
      28e7dbd3
  17. 08 Apr, 2017 1 commit