mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 12:04:27 +00:00
fix code formatting and bug with losing enums when using --gen-onefile
This commit is contained in:
@@ -141,9 +141,9 @@ int main(int argc, const char *argv[]) {
|
||||
opts.mutable_buffer = true;
|
||||
} else if(arg == "--gen-includes") {
|
||||
opts.include_dependence_headers = true;
|
||||
}else if (arg == "--gen-onefile") {
|
||||
} else if (arg == "--gen-onefile") {
|
||||
opts.one_file = true;
|
||||
}else if (arg == "--raw-binary") {
|
||||
} else if (arg == "--raw-binary") {
|
||||
raw_binary = true;
|
||||
} else if(arg == "--") { // Separator between text and binary inputs.
|
||||
binary_files_from = filenames.size();
|
||||
|
||||
@@ -901,7 +901,7 @@ bool GenerateGeneral(const Parser &parser,
|
||||
std::string enumcode;
|
||||
GenEnum(lang, **it, &enumcode);
|
||||
if (opts.one_file) {
|
||||
one_file_code = enumcode;
|
||||
one_file_code += enumcode;
|
||||
}
|
||||
else {
|
||||
if (!SaveClass(lang, parser, (**it).name, enumcode, path, false, false))
|
||||
|
||||
Reference in New Issue
Block a user