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

Function arrayTypeName

src/format.cpp:46–55  ·  view source on GitHub ↗

Array type string: "uint32_t[16]" or "Material[2]"

Source from the content-addressed store, hash-verified

44
45// Array type string: "uint32_t[16]" or "Material[2]"
46QString arrayTypeName(NodeKind elemKind, int count, const QString& structName) {
47 QString elem;
48 if (elemKind == NodeKind::Struct && !structName.isEmpty())
49 elem = structName;
50 else {
51 auto* m = kindMeta(elemKind);
52 elem = m ? QString::fromLatin1(m->typeName) : QStringLiteral("???");
53 }
54 return elem + QStringLiteral("[") + QString::number(count) + QStringLiteral("]");
55}
56
57// Pointer type string: "void*" or "StructName*"
58QString pointerTypeName(NodeKind kind, const QString& targetName) {

Callers 2

composeFunction · 0.85
fmtArrayHeaderFunction · 0.85

Calls 1

kindMetaFunction · 0.85

Tested by

no test coverage detected