mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 13:53:38 +00:00
Implemented option --scoped-enum for C++ generator
This generates C++11 style scoped and strongly typed enums. Enabling this option also implies --no-prefix.
This commit is contained in:
@@ -425,6 +425,7 @@ struct GeneratorOptions {
|
||||
int indent_step;
|
||||
bool output_enum_identifiers;
|
||||
bool prefixed_enums;
|
||||
bool scoped_enums;
|
||||
bool include_dependence_headers;
|
||||
bool mutable_buffer;
|
||||
bool one_file;
|
||||
@@ -437,7 +438,7 @@ struct GeneratorOptions {
|
||||
GeneratorOptions() : strict_json(false),
|
||||
output_default_scalars_in_json(false),
|
||||
indent_step(2),
|
||||
output_enum_identifiers(true), prefixed_enums(true),
|
||||
output_enum_identifiers(true), prefixed_enums(true), scoped_enums(false),
|
||||
include_dependence_headers(true),
|
||||
mutable_buffer(false),
|
||||
one_file(false),
|
||||
|
||||
Reference in New Issue
Block a user