1. 29 Oct, 2018 1 commit
  2. 25 Oct, 2018 2 commits
  3. 24 Oct, 2018 1 commit
  4. 22 Oct, 2018 5 commits
    • Felix Hanley's avatar
      560718e9
    • Doug Muir's avatar
      Make alignment checking optional. (#5011) · ff687ae9
      Doug Muir authored
      ff687ae9
    • Frank Benkstein's avatar
      make flatbuffers::IsFieldPresent safer (#4988) · ca417426
      Frank Benkstein authored
      Give the vtable offset enum inside each table the name
      "FlatBuffersVTableOffset" and base type voffset_t so it can be used as a
      dependent type in IsFieldPresent. This makes that function slightly
      safer since it prevents calling it with arbitrary, non-table types.
      Now, the only way to use IsFieldPresent incorrectly is to create your
      own type which does not inherit from flatbuffers::Table but has a
      dependent voffset convertible type "FlatBuffersVTableOffset".
      ca417426
    • Vladimir Glavnyy's avatar
      Add fuzzer test for scalar numbers in json. (#4996) · 55b30827
      Vladimir Glavnyy authored
      * Add fuzzer test for scalar numbers in json. Grammar-based regex used to check correctness.
      
      * Fix conversation
      55b30827
    • Frank Benkstein's avatar
      CI check generate code (#4998) · efbb11e0
      Frank Benkstein authored
      * call reflection code generation from tests
      
      This simplifies instructions to contributors so they don't forget to update
      reflection code.
      
      * add error handling to generate_code scripts
      
      Let them propagate their errors instead of swallowing them so they show
      up when called in CI.
      
      * apply editorconfig to shell scripts
      
      * use ordered map in dart codegen
      
      Using an unordered map in the codegen can lead to spurious diffs in the
      generated dart code.
      
      * add CI check for generate_code being run
      
      * update reflection_generated.h
      
      * disable diff-check for monster_test.bfbs
      
      Work around #5008.
      efbb11e0
  5. 18 Oct, 2018 2 commits
    • Frank Benkstein's avatar
      forbid enum values that are out of range (#4977) · 5c0f914f
      Frank Benkstein authored
      * forbid enum values that are out of range
      
      Enum values that are out of range can lead to generated C++ code that does
      not compile.  Also forbid boolean enums.
      
      * update enum and union documentation slightly
      5c0f914f
    • Sumant Tambe's avatar
      Efficient Conversion of a FlatBufferBuilder to a MessageBuilder (#4980) · 802639e4
      Sumant Tambe authored
      * Efficient conversion of FlatBufferBuilder to grpc::MessageBuilder
      
      * Added a variety of tests to validate correctness of the MessageBuilder move operations.
      Disable MessageBuilder half-n-half tests on MacOS.
      
      * Fix failing Android build
      
      * Generalized the MessageBuilder move constructor to accept a deallocator
      802639e4
  6. 16 Oct, 2018 1 commit
  7. 15 Oct, 2018 4 commits
    • kostya-sh's avatar
      Go - Use Go bool type for bool fields (#4962) · 76d31e1b
      kostya-sh authored
      * Use Go bool type for bool fields, and store non-default bool field to test data
      76d31e1b
    • Frank Benkstein's avatar
      disallow c style casts (#4981) · 20396a17
      Frank Benkstein authored
      Fixes #4857.
      20396a17
    • Frank Benkstein's avatar
      don't use std::function in flatbuffers::Parser (#4995) · a3d8391f
      Frank Benkstein authored
      std::function makes code harder to debug because it requires stepping
      through a separate destructor and call operator.  It's use unnecessary
      in the Parser since the functions taking functors are private and are
      only used within idl_parser.cpp.  Therefore the definitions can stay in
      idl_parser.cpp as well.  Only care must be taken that the definitions
      appear before use but that's already true and all compilers will
      complain equally if it get's violated.  This change might also improve
      performance since it might allow inlining where it wasn't possible
      before but I haven't measured that.
      a3d8391f
    • iceboy's avatar
      add :runtime_cc target (#4994) · 241e87d1
      iceboy authored
      241e87d1
  8. 11 Oct, 2018 4 commits
  9. 08 Oct, 2018 6 commits
  10. 04 Oct, 2018 2 commits
  11. 03 Oct, 2018 5 commits
  12. 01 Oct, 2018 3 commits
  13. 29 Sep, 2018 1 commit
    • Matt Mastracci's avatar
      Remove lifetime specifier on table getter methods (#4949) · bf871ffd
      Matt Mastracci authored
      With the old-style code, the test fails with a borrow-checker error:
      
      ```
        #[inline]
        pub fn name(&'a self) -> &'a str {
          self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None).unwrap()
        }
      ```
      
      ```
      error[E0597]: `e` does not live long enough
         --> tests/integration_test.rs:273:57
          |
      273 |         let enemy_of_my_enemy = monster.enemy().map(|e| e.name());
          |                                                         ^      - `e` dropped here while still borrowed
          |                                                         |
          |                                                         borrowed value does not live long enough
      274 |         assert_eq!(enemy_of_my_enemy, Some("Fred"));
      275 |     }
          |     - borrowed value needs to live until here
      ```
      bf871ffd
  14. 28 Sep, 2018 1 commit
  15. 27 Sep, 2018 2 commits