C++ IDL generation adds superfluous semicolon in GenTablePost, causing (#5483)

-Wextra-semi-stmt warning when building with Clang 8.0.0. Update generated
files for testing
This commit is contained in:
Wes McKinney
2019-08-19 19:49:37 -05:00
committed by Wouter van Oortmerssen
parent 3030449348
commit c1058a903b
7 changed files with 94 additions and 136 deletions

View File

@@ -2607,7 +2607,7 @@ class CppGenerator : public BaseGenerator {
code_.SetValue("FIELD_NAME", Name(field));
auto prefix = " { auto _e = {{FIELD_NAME}}(); ";
auto check = IsScalar(field.value.type.base_type) ? "" : "if (_e) ";
auto postfix = " };";
auto postfix = " }";
code_ += std::string(prefix) + check + statement + postfix;
}
code_ += "}";