mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +00:00
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:
committed by
Wouter van Oortmerssen
parent
3030449348
commit
c1058a903b
@@ -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_ += "}";
|
||||
|
||||
Reference in New Issue
Block a user