mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 12:43:24 +00:00
Re-added Evolution Schema Code Generation Command (#5999)
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case. * Fixed Dart Tests by removing code-gen for included files. * Added code gen for evolution tests back in. * General generate code and clang format * Added evolution schema generation to .bat file * Added code gen for evolution tests back in. * General generate code and clang format * Added evolution schema generation to .bat file * reran generate_code.sh * Removed wildcard from generate_code.bat that doesn't work
This commit is contained in:
@@ -1681,9 +1681,7 @@ class CppGenerator : public BaseGenerator {
|
||||
code_.SetValue("NATIVE_NAME",
|
||||
NativeName(Name(struct_def), &struct_def, opts_));
|
||||
// In >= C++11, default member initializers are generated.
|
||||
if (opts_.g_cpp_std >= cpp::CPP_STD_11) {
|
||||
return;
|
||||
}
|
||||
if (opts_.g_cpp_std >= cpp::CPP_STD_11) { return; }
|
||||
std::string initializer_list;
|
||||
for (auto it = struct_def.fields.vec.begin();
|
||||
it != struct_def.fields.vec.end(); ++it) {
|
||||
|
||||
Reference in New Issue
Block a user