summaryrefslogtreecommitdiff
path: root/tests/arrays_test.bfbs
AgeCommit message (Collapse)AuthorFilesLines
2022-11-17Put documentation to bfbs if it is not empty (#7649)tira-misu1-0/+0
* Fix C/C++ Create<Type>Direct with sorted vectors If a struct has a key the vector has to be sorted. To sort the vector you can't use "const". * Changes due to code review * Improve code readability * Add generate of JSON schema to string to lib * option indent_step is supported * Remove unused variables * Fix break in test * Fix style to be consistent with rest of the code * [TS] Fix reserved words as arguments (#6955) * [TS] Fix generation of reserved words in object api (#7106) * [TS] Fix generation of object api * [TS] Fix MakeCamel -> ConvertCase * [C#] Fix collision of field name and type name * [TS] Add test for struct of struct of struct * Update generated files * Add missing files * [TS] Fix query of null/undefined fields in object api * Put documentation to bfbs if it is not empty * Fix monster test bfbs reference files * Fix generated monster test files Why they are different when generating it with linux and windows executable?
2021-12-02Lua Generator using IR. (#6940)Derek Bailey1-0/+0
* initial hack to get new Lua generator into flatc * Starting to output enum defs for Lua * Continue to work on table generation for Lua * Finished basic getter access for Lua * Added ability to get object by index * Finished struct builder * aliased reflection to r * finish table builder generation * register requiring files * better generated header info * Tying up loose ends * Updated reflection to handle struct padding * Addd type sizes to reflection * Fixed some vector indirect issues * Lua tests passed * Misc cleanup * ci fixes 1 * ci fixes 2 * renaming * up size of type sizes * manually ran clang-format-11 -i src/idl_parser.cpp * fixed some windows casting * remove stupid auto import * more static_casting * remove std * update other build environments * remove scoped enums * replaced std::to_string with NumToString * more win fixes * more win fixes * replaced old lua with new * removed auto import * review responses * more style fixes * refactor bfbs_gen_len to use code += * added consts * fix lambda capture for windows * remove unused return type
2021-09-24Make and generate_code.sh generate same outputs (#6855)Derek Bailey1-0/+0
* added --bfbs-builtins * update generate_code.bat * forgot the . * updated checking scripts * added bypass for the monster_test.bfbs and arrays_test.bfbs diff issue * removed check on windows for now
2021-06-19Replace filenames in reflection with filenames+includes. (#6703)Casper1-0/+0
* Replace filenames in reflection with filenames+includes. This is needed for some use cases and may be just useful metadata. * deser files_included_per_file_ * check project_root * fix bazel * git clang format Co-authored-by: Casper Neo <cneo@google.com>
2021-06-17Add the file a symbol is declared in to Reflection (#6613)Casper1-0/+0
* Add the file a symbol is declared in to Reflection If we move a code-generator to depend on Reflection, it may need to know which file something was declared in to properly name generated files. * Doc comments in reflection, and more precise tests * Add --project-root flag to flatc, normalize declaraion_file to this root * fix --project-root stuff * posixpath * fix scripts * format * rename --project-root to --bfbs-filenames Also, make it optional, rather than defaulting to `./`, if its not specified, then don't serialize the filenames. * bfbs generation * fix some tests * uncomment a thing * add to project root directory conditionally * fix * git clang format * Added help description and removed != nullptr * " * Remove accidental change to docs * Remove accidental change to docs * Pool strings Co-authored-by: Casper Neo <cneo@google.com>
2021-04-27Add advance feature indicators to reflection (#6546)Casper1-0/+0
* Add advance feature indicators to reflection * deserialize too * model advanced features as bitflags * use uint64_t instead of AdvancedFeatures * git clang format * initialize advanced_features_ * remove whitespace Co-authored-by: Casper Neo <cneo@google.com>
2020-09-11Optional-ness in reflection (#6097)Casper1-0/+0
* Optional scalars in reflection * fixed name collision * Remove code duplicated by merge Co-authored-by: Casper Neo <cneo@google.com>
2019-08-23Fix incorrect padding in arrays of structs (Issue #5484) (#5491)svenk1771-0/+0
2019-06-18Add support for fixed-size arrays (#5313)svenk1771-0/+0