aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/GRExprEngine.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-14 08:17:51 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-14 08:17:51 +0000
commitf3ea8cfe6b1c2ef0702efe130561e9e66708d799 (patch)
treee846d78ad848b43259d6f6a48698f41e4f29e399 /lib/Checker/GRExprEngine.cpp
parent81921cc4218e07363b5a0ea031fe775cba9b40c6 (diff)
Add a few more complex-related cast kinds that arise due to arbitrary
implicit conversions; the last batch was specific to promotions. I think this is the full set we need. I do think dividing the cast kinds into floating and integral is probably a good idea. Annotate a *lot* more C casts with useful cast kinds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r--lib/Checker/GRExprEngine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp
index 19238bf2af..4a1df68e5b 100644
--- a/lib/Checker/GRExprEngine.cpp
+++ b/lib/Checker/GRExprEngine.cpp
@@ -2525,10 +2525,15 @@ void GRExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex,
case CK_FloatingToIntegral:
case CK_FloatingCast:
case CK_FloatingRealToComplex:
+ case CK_FloatingComplexToReal:
+ case CK_FloatingComplexToBoolean:
case CK_FloatingComplexCast:
+ case CK_FloatingComplexToIntegralComplex:
case CK_IntegralRealToComplex:
+ case CK_IntegralComplexToReal:
+ case CK_IntegralComplexToBoolean:
case CK_IntegralComplexCast:
- case CK_IntegralToFloatingComplex:
+ case CK_IntegralComplexToFloatingComplex:
case CK_AnyPointerToObjCPointerCast:
case CK_AnyPointerToBlockPointerCast:
case CK_DerivedToBase: