aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorAlexander Gallego <gallego.alexx@gmail.com>2019-05-31 13:43:30 -0700
committerWouter van Oortmerssen <aardappel@gmail.com>2019-05-31 13:43:30 -0700
commitbc7ede8fb3a754a04e507992d5514b528270ee06 (patch)
tree1163f9ac3e03fe992d293c949757fb95740d1b35 /docs/source
parentb652fcc3a7708f0cf5027748fd4d2df134eb6974 (diff)
downloadflatbuffers-bc7ede8fb3a754a04e507992d5514b528270ee06.tar.gz
c++: Add command line option to add extra includes to gen files (#5360)
* 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}
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/Compiler.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/source/Compiler.md b/docs/source/Compiler.md
index 90f8d8b4..29979ce4 100644
--- a/docs/source/Compiler.md
+++ b/docs/source/Compiler.md
@@ -117,6 +117,8 @@ Additional options:
output (by default the case for C++ and JS), all code will end up in
this one file.
+- `--cpp-include` : Adds an #include in generated file
+
- `--cpp-ptr-type T` : Set object API pointer type (default std::unique_ptr)
- `--cpp-str-type T` : Set object API string type (default std::string)