1. 05 Jun, 2019 1 commit
  2. 02 Jun, 2019 2 commits
  3. 31 May, 2019 4 commits
    • Alexander Gallego's avatar
      c++: Add command line option to add extra includes to gen files (#5360) · bc7ede8f
      Alexander Gallego authored
      * 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}
      bc7ede8f
    • Wouter van Oortmerssen's avatar
      Break internal Java/C# APIs · b652fcc3
      Wouter van Oortmerssen authored
      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
      b652fcc3
    • Wouter van Oortmerssen's avatar
      Enforce matching version in Java and C#. · c978b9ef
      Wouter van Oortmerssen authored
      Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
      c978b9ef
    • 360 CodeSafe's avatar
      Dereference of null pointer #5353 (#5376) · 3a88e103
      360 CodeSafe authored
      add an assert to make sure that `key_field` is not a null pointer.
      3a88e103
  4. 30 May, 2019 4 commits
  5. 23 May, 2019 1 commit
  6. 22 May, 2019 5 commits
  7. 21 May, 2019 3 commits
  8. 20 May, 2019 2 commits
  9. 17 May, 2019 1 commit
    • David Reiss's avatar
      [Go] Make enums into real types, add String() (#5235) · 718ddea5
      David Reiss authored
      * [Go] Make enums into real types, add String()
      
      This changes the generated code for enums: instead of type aliases,
      they're now distinct types, allowing for better type-checking. Some
      client code may have to be changed to add casts.
      
      Enum types now have a String() method, so they implement fmt.Stringer.
      
      An EnumValues map is now generated, in addition to the existing
      EnumNames map, to easily map strings to values.
      
      Generated enum files are now gofmt-clean.
      
      Fixes #5207
      
      * use example.ColorGreen explicitly
      
      * use valid enum value in mutation test, add new test for "invalid" enum
      
      * add length check and comment
      718ddea5
  10. 16 May, 2019 3 commits
  11. 13 May, 2019 1 commit
  12. 09 May, 2019 4 commits
  13. 08 May, 2019 1 commit
  14. 06 May, 2019 3 commits
    • Malthe Borch's avatar
      Use a hash table to index existing vtables (#5314) · e47ca7ab
      Malthe Borch authored
      * Use a hash table to index existing vtables
      
      This allows for quick deduplication even in situations where there
      might be thousands of vtables due to 'combinatoric explosion'.
      
      This fixes issue #5301.
      
      * Refactor 0-offset trimming
      
      * Improve deduplication benchmark
      
      The routine now generates a set of realistic logical layouts and
      uses a timer function that randomly picks a layout for each iteration.
      
      The benchmark runs in batches of # of logical layouts = 1, 10, 100, 1000.
      
      (Note that due to alignment, the actual number of vtables is usually slightly
      higher.)
      e47ca7ab
    • Vladimir Glavnyy's avatar
      Add monster_extra files to Bazel cc_test section (#5321) · d79f4e97
      Vladimir Glavnyy authored
      - add monster_extra.fbs
      - add monsterdata_extra.json
      d79f4e97
    • Lee Mracek's avatar
      Fix typo in build_defs.bzl (#5320) · 5d67693e
      Lee Mracek authored
      5d67693e
  15. 02 May, 2019 2 commits
    • Vladimir Glavnyy's avatar
      Make MonsterExtra table a root table (#5315) · af74f87c
      Vladimir Glavnyy authored
      - MonsterExtra table a root table
      - add mosterdata_extra.json
      af74f87c
    • Vladimir Glavnyy's avatar
      Fix issues with uint64 enums (#5265) · b8ef8c15
      Vladimir Glavnyy authored
      * Fix issues with uint64 enums
      
      - hide the implementation of enums from code generators
      - fix uint64 the issue in the cpp-generator
      - fix #5108
      - new tests
      - enums with bit_flags attribute should be unsigned
      
      * Refine objectives of EnumDef's FindByValue and ReverseLookup methods
      
      - move EnumDef::ReverseLookup implementation to idl_parser.cpp
      - fix typos
      
      * Make the IsUInt64 method private
      b8ef8c15
  16. 29 Apr, 2019 1 commit
  17. 27 Apr, 2019 1 commit
  18. 24 Apr, 2019 1 commit