| 139 | // ── Struct type name (for width calculation) ── |
| 140 | |
| 141 | QString structTypeName(const Node& node) { |
| 142 | // Full type string: "struct TypeName" or just "struct" if no typename |
| 143 | QString base = typeName(node.kind).trimmed(); // "struct" |
| 144 | if (!node.structTypeName.isEmpty()) |
| 145 | return base + QStringLiteral(" ") + node.structTypeName; |
| 146 | return base; |
| 147 | } |
| 148 | |
| 149 | // ── Struct header / footer ── |
| 150 |
no test coverage detected