}
}
-/// getFloatingTypeOfSizeWithinDomain - Returns the either a real floating
-/// point type or a complex type (based on typeDomain) of typeSize.
-/// typeSize is expected to be a floating point type (real or complex).
+/// getFloatingTypeOfSizeWithinDomain - Returns a real floating
+/// point or a complex type (based on typeDomain/typeSize).
+/// 'typeDomain' is a real floating point or complex type.
+/// 'typeSize' is a real floating point or complex type.
QualType ASTContext::getFloatingTypeOfSizeWithinDomain(
QualType typeSize, QualType typeDomain) const {
if (typeDomain->isComplexType()) {
switch (getFloatingRank(typeSize)) {
- default: assert(0 && "convertRankToComplex(): illegal value for rank");
+ default: assert(0 && "getFloatingRank(): illegal value for rank");
case FloatRank: return FloatComplexTy;
case DoubleRank: return DoubleComplexTy;
case LongDoubleRank: return LongDoubleComplexTy;
}
if (typeDomain->isRealFloatingType()) {
switch (getFloatingRank(typeSize)) {
- default: assert(0 && "convertRankToComplex(): illegal value for rank");
+ default: assert(0 && "getFloatingRank(): illegal value for rank");
case FloatRank: return FloatTy;
case DoubleRank: return DoubleTy;
case LongDoubleRank: return LongDoubleTy;
/// different combos: float/float, float/complex, complex/complex.
static QualType maxFloatingType(QualType lt, QualType rt);
- /// getFloatingTypeOfSizeWithinDomain - Returns the either a real floating
- /// point type or a complex type (based on typeDomain) of typeSize.
- /// typeSize is expected to be a floating point type (real or complex).
+ /// getFloatingTypeOfSizeWithinDomain - Returns a real floating
+ /// point or a complex type (based on typeDomain/typeSize).
+ /// 'typeDomain' is a real floating point or complex type.
+ /// 'typeSize' is a real floating point or complex type.
QualType getFloatingTypeOfSizeWithinDomain(QualType typeSize,
QualType typeDomain) const;
private: