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

Method computeStructAlignment

src/compose.cpp:706–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706int NodeTree::computeStructAlignment(uint64_t structId) const {
707 int idx = indexOfId(structId);
708 if (idx < 0) return 1;
709 int maxAlign = 1;
710 QVector<int> kids = childrenOf(structId);
711 for (int ci : kids) {
712 const Node& c = nodes[ci];
713 if (c.kind == NodeKind::Struct || c.kind == NodeKind::Array) {
714 maxAlign = qMax(maxAlign, computeStructAlignment(c.id));
715 } else {
716 maxAlign = qMax(maxAlign, alignmentFor(c.kind));
717 }
718 }
719 return maxAlign;
720}
721
722} // namespace rcx

Callers 3

showContextMenuMethod · 0.80

Calls 1

alignmentForFunction · 0.85

Tested by 2