mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 02:17:05 +00:00
fix code formatting and bug with losing enums when using --gen-onefile
This commit is contained in:
@@ -57,6 +57,8 @@ be generated for each file processed:
|
|||||||
- `--gen-mutable` : Generate additional non-const accessors for mutating
|
- `--gen-mutable` : Generate additional non-const accessors for mutating
|
||||||
FlatBuffers in-place.
|
FlatBuffers in-place.
|
||||||
|
|
||||||
|
- `--gen-onefile` : Generate single output file (useful for C#)
|
||||||
|
|
||||||
- `--raw-binary` : Allow binaries without a file_indentifier to be read.
|
- `--raw-binary` : Allow binaries without a file_indentifier to be read.
|
||||||
This may crash flatc given a mismatched schema.
|
This may crash flatc given a mismatched schema.
|
||||||
|
|
||||||
|
|||||||
@@ -901,7 +901,7 @@ bool GenerateGeneral(const Parser &parser,
|
|||||||
std::string enumcode;
|
std::string enumcode;
|
||||||
GenEnum(lang, **it, &enumcode);
|
GenEnum(lang, **it, &enumcode);
|
||||||
if (opts.one_file) {
|
if (opts.one_file) {
|
||||||
one_file_code = enumcode;
|
one_file_code += enumcode;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!SaveClass(lang, parser, (**it).name, enumcode, path, false, false))
|
if (!SaveClass(lang, parser, (**it).name, enumcode, path, false, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user