TType::getCompleteString insert optional structure name

This commit is contained in:
Christoph Kubisch 2019-04-16 09:50:48 +02:00
parent b84a520492
commit 8a0e12a107

View File

@ -2019,6 +2019,11 @@ public:
// Add struct/block members
if (isStruct() && structure) {
if (typeName) {
appendStr(" ");
appendStr(typeName->c_str());
appendStr(" ");
}
appendStr("{");
for (size_t i = 0; i < structure->size(); ++i) {
if (! (*structure)[i].type->hiddenMember()) {