| 3098 | } |
| 3099 | |
| 3100 | int TypeDecl::getAlignOf() const { |
| 3101 | if ( baseType==Type::tHandle ) { |
| 3102 | return int(annotation->getAlignOf()); |
| 3103 | } else if ( baseType==Type::tStructure ) { |
| 3104 | return !structType->circular ? structType->getAlignOf() : 0; |
| 3105 | } else if ( baseType==Type::tTuple ) { |
| 3106 | return getTupleAlign(); |
| 3107 | } else if ( baseType==Type::tVariant ) { |
| 3108 | return getVariantAlign(); |
| 3109 | } else if ( isEnumT() ) { |
| 3110 | return enumType ? getTypeBaseAlign(enumType->baseType) : getTypeBaseAlign(Type::tInt); |
| 3111 | } else { |
| 3112 | return getTypeBaseAlign(baseType); |
| 3113 | } |
| 3114 | } |
| 3115 | |
| 3116 | int TypeDecl::getAlignOfFailed(bool &failed) const { |
| 3117 | if ( baseType==Type::tHandle ) { |
no test coverage detected