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

Method getTupleAlign

src/ast/ast_typedecl.cpp:2942–2949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2940 }
2941
2942 int TypeDecl::getTupleAlign() const {
2943 DAS_ASSERT(baseType==Type::tTuple);
2944 int align = 1;
2945 for ( const auto & argT : argTypes ) {
2946 align = das::max ( argT->getAlignOf(), align );
2947 }
2948 return align;
2949 }
2950
2951 int TypeDecl::getTupleAlignFailed(bool & failed) const {
2952 DAS_ASSERT(baseType==Type::tTuple);

Callers

nothing calls this directly

Calls 1

getAlignOfMethod · 0.45

Tested by

no test coverage detected