MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getAlignOf

Method getAlignOf

src/ast/ast.cpp:512–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510 }
511
512 int Structure::getAlignOf() const {
513 if ( circularGuard ) return 1;
514 circularGuard = true;
515 int align = 1;
516 for ( const auto & fd : fields ) {
517 align = das::max ( fd.type->getAlignOf(), align );
518 }
519 circularGuard = false;
520 return align;
521 }
522
523 int Structure::getAlignOfFailed(bool & failed) const {
524 if ( circularGuard ) return 1;

Callers 5

makeMethod · 0.45
getTypeBaseAlignFunction · 0.45
visitStructureFieldMethod · 0.45
getSizeOf64Method · 0.45
makeMethod · 0.45

Calls

no outgoing calls

Tested by 1

makeMethod · 0.36