revert typeName from getCompleteString() (breaks tests), add to function dump instead
authorChristoph Kubisch <pixeljetstream@luxinia.de>
Tue, 16 Apr 2019 11:28:49 +0000 (13:28 +0200)
committerChristoph Kubisch <pixeljetstream@luxinia.de>
Tue, 16 Apr 2019 11:28:49 +0000 (13:28 +0200)
glslang/Include/Types.h
glslang/MachineIndependent/SymbolTable.cpp

index 9b71801..90341dc 100644 (file)
@@ -2019,11 +2019,6 @@ 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()) {
index 556d5fc..d0b6ecd 100755 (executable)
@@ -216,7 +216,8 @@ void TFunction::dump(TInfoSink &infoSink, bool complete) const
         for (int i = 0; i < numParams; i++) {
             const TParameter &param = parameters[i];
             infoSink.debug << param.type->getCompleteString() << " "
-                           << (param.name ? param.name->c_str() : "") << (i < numParams - 1 ? "," : "");
+                           << (param.type->isStruct() ? "of " + param.type->getTypeName() + " " : "")
+                           << (param.name ? *param.name : "") << (i < numParams - 1 ? "," : "");
         }
 
         infoSink.debug << ")";