We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The schema below, when compiled with the options --cpp, --gen-object-api and --cpp-field-case-style upper, generates invalid C++ code.
--cpp
--gen-object-api
--cpp-field-case-style upper
Affecfted versions: v24.3.25, current master
table MyUnionContent { value:uint8; } union MyUnion { content:MyUnionContent, } table MyTable { property:MyUnion; }
// ... struct MyTableT : public ::flatbuffers::NativeTable { typedef MyTable TableType; MyUnionUnion Property{}; }; // ... inline void MyTable::UnPackTo(MyTableT *_o, const ::flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { auto _e = Property_type(); _o->property.type = _e; } { auto _e = Property(); if (_e) _o->Property.value = MyUnionUnion::UnPack(_e, property_type(), _resolver); } } // The capitalization of _o->property.type and property_type() is wrong // ...
The text was updated successfully, but these errors were encountered:
Related: #7210
Sorry, something went wrong.
[C++] Fixes google#8446
b75eccd
Fixes access to union members when generating code with options "--cpp-field-case-style upper" and "--gen-object-api"
7ea3881
No branches or pull requests
The schema below, when compiled with the options
--cpp
,--gen-object-api
and--cpp-field-case-style upper
, generates invalid C++ code.Affecfted versions: v24.3.25, current master
Schema
Output
The text was updated successfully, but these errors were encountered: