diff options
author | vijairaj <vijairaj.r@gmail.com> | 2015-09-15 13:41:29 +0530 |
---|---|---|
committer | vijairaj <vijairaj.r@gmail.com> | 2015-09-15 16:13:52 +0530 |
commit | c02b16e19590bb53baf0482d254109030442eaed (patch) | |
tree | 1a56a2e550c5b067476be2e54651cd1b9551056d /docs | |
parent | 169df65df48ea8b2d5e533a526e5829ddfc4f9ec (diff) | |
download | flatbuffers-c02b16e19590bb53baf0482d254109030442eaed.tar.gz |
Implemented option --scoped-enum for C++ generator
This generates C++11 style scoped and strongly typed enums.
Enabling this option also implies --no-prefix.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/md__compiler.html | 1 | ||||
-rwxr-xr-x | docs/source/Compiler.md | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/html/md__compiler.html b/docs/html/md__compiler.html index 043cb23b..6ae87ed3 100644 --- a/docs/html/md__compiler.html +++ b/docs/html/md__compiler.html @@ -78,6 +78,7 @@ $(document).ready(function(){initNavTree('md__compiler.html','');}); <li><code>--strict-json</code> : Require & generate strict JSON (field names are enclosed in quotes, no trailing commas in tables/vectors). By default, no quotes are required/generated, and trailing commas are allowed.</li> <li><code>--defaults-json</code> : Output fields whose value is equal to the default value when writing JSON text.</li> <li><code>--no-prefix</code> : Don't prefix enum values in generated C++ by their enum type.</li> +<li><code>--scoped-enums</code> : Use C++11 style scoped and strongly typed enums in generated C++. This also implies <code>--no-prefix</code>.</li> <li><code>--gen-includes</code> : (deprecated), this is the default behavior. If the original behavior is required (no include statements) use <code>--no-includes.</code></li> <li><code>--no-includes</code> : Don't generate include statements for included schemas the generated file depends on (C++).</li> <li><code>--gen-mutable</code> : Generate additional non-const accessors for mutating FlatBuffers in-place.</li> diff --git a/docs/source/Compiler.md b/docs/source/Compiler.md index 5d254dfa..e4663e17 100755 --- a/docs/source/Compiler.md +++ b/docs/source/Compiler.md @@ -51,6 +51,9 @@ be generated for each file processed: - `--no-prefix` : Don't prefix enum values in generated C++ by their enum type. +- `--scoped-enums` : Use C++11 style scoped and strongly typed enums in + generated C++. This also implies `--no-prefix`. + - `--gen-includes` : (deprecated), this is the default behavior. If the original behavior is required (no include statements) use `--no-includes.` |