MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / fmtArrayHeader

Function fmtArrayHeader

src/format.cpp:165–170  ·  view source on GitHub ↗

── Array header ── Columnar format: { (or no brace when collapsed)

Source from the content-addressed store, hash-verified

163// ── Array header ──
164// Columnar format: <type[count]> <name> { (or no brace when collapsed)
165QString fmtArrayHeader(const Node& node, int depth, int /*viewIdx*/, bool collapsed, int colType, int colName, const QString& elemStructName) {
166 QString ind = indent(depth);
167 QString type = fit(arrayTypeName(node.elementKind, node.arrayLen, elemStructName), colType);
168 QString suffix = collapsed ? QString() : QStringLiteral("{");
169 return ind + type + SEP + node.name + SEP + suffix;
170}
171
172// ── Pointer header (merged pointer + struct header) ──
173

Callers 1

composeParentFunction · 0.85

Calls 3

indentFunction · 0.85
fitFunction · 0.85
arrayTypeNameFunction · 0.85

Tested by

no test coverage detected