[cfe-commits] r41475 - in /cfe/trunk: AST/ASTContext.cpp include/clang/AST/ASTContext.h
Steve Naroff
snaroff at apple.com
Sun Aug 26 18:41:49 PDT 2007
Author: snaroff
Date: Sun Aug 26 20:41:48 2007
New Revision: 41475
URL: http://llvm.org/viewvc/llvm-project?rev=41475&view=rev
Log:
Tweak a comment and assert.
Modified:
cfe/trunk/AST/ASTContext.cpp
cfe/trunk/include/clang/AST/ASTContext.h
Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=41475&r1=41474&r2=41475&view=diff
==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Sun Aug 26 20:41:48 2007
@@ -685,14 +685,15 @@
}
}
-/// 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;
@@ -700,7 +701,7 @@
}
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;
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=41475&r1=41474&r2=41475&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Sun Aug 26 20:41:48 2007
@@ -164,9 +164,10 @@
/// 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:
More information about the cfe-commits
mailing list