aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-08-27 01:27:54 +0000
committerSteve Naroff <snaroff@apple.com>2007-08-27 01:27:54 +0000
commitf1448a0e4a1e868ff873a8530a61a09cb68666cc (patch)
treefb389669d2f59f0aa3c84b6bd9018661c9475c4b /include/clang
parent45a566cfcbec0efd50bc737991bdfcc70e986811 (diff)
Replaced ASTContext::maxComplexType() with ASTContext::getFloatingTypeOfSizeWithinDomain().
Changed Sema::UsualArithmeticConversions to correctly implement complex/float conversions, using maxFloatingType() with getFloatingTypeOfSizeWithinDomain(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/AST/ASTContext.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index d86a6ed70d..2239118a5d 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -160,14 +160,15 @@ public:
/// different type combos: unsigned/unsigned, signed/signed, signed/unsigned.
static QualType maxIntegerType(QualType lhs, QualType rhs);
- /// maxFloatingType - Returns the highest ranked float type. Both input
- /// types are required to be floats.
+ /// maxFloatingType - Returns the highest ranked float type. Handles 3
+ /// different combos: float/float, float/complex, complex/complex.
static QualType maxFloatingType(QualType lt, QualType rt);
- /// maxComplexType - Returns the highest ranked complex type. Handles 3
- /// different type combos: complex/complex, complex/float, float/complex.
- QualType maxComplexType(QualType lt, QualType rt) const;
-
+ /// 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).
+ QualType getFloatingTypeOfSizeWithinDomain(QualType typeSize,
+ QualType typeDomain) const;
private:
ASTContext(const ASTContext&); // DO NOT IMPLEMENT
void operator=(const ASTContext&); // DO NOT IMPLEMENT