]> granicus.if.org Git - clang/commitdiff
Testing my commit access. A few whitespace changes to Sema/SemaCXXCast.cpp.
authorRichard Trieu <rtrieu@google.com>
Sat, 16 Apr 2011 01:09:30 +0000 (01:09 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 16 Apr 2011 01:09:30 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129629 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCXXCast.cpp

index a27a5debec90b5ab377d429bd4150057ed16d918..a0d1514bd0b42b1551587b18fd50c6863be78336 100644 (file)
@@ -1602,16 +1602,16 @@ Sema::CXXCheckCStyleCast(SourceRange R, QualType CastTy, ExprValueKind &VK,
   if (tcr == TC_NotApplicable) {
     // ... or if that is not possible, a static_cast, ignoring const, ...
     ExprResult CastExprRes = Owned(CastExpr);
-    tcr = TryStaticCast(*this, CastExprRes, CastTy, /*CStyle*/true, R, msg, Kind,
-                        BasePath);
+    tcr = TryStaticCast(*this, CastExprRes, CastTy, /*CStyle*/true, R, msg,
+                        Kind, BasePath);
     if (CastExprRes.isInvalid())
       return ExprError();
     CastExpr = CastExprRes.take();
     if (tcr == TC_NotApplicable) {
       // ... and finally a reinterpret_cast, ignoring const.
       CastExprRes = Owned(CastExpr);
-      tcr = TryReinterpretCast(*this, CastExprRes, CastTy, /*CStyle*/true, R, msg,
-                               Kind);
+      tcr = TryReinterpretCast(*this, CastExprRes, CastTy, /*CStyle*/true, R,
+                               msg, Kind);
       if (CastExprRes.isInvalid())
         return ExprError();
       CastExpr = CastExprRes.take();
@@ -1626,8 +1626,7 @@ Sema::CXXCheckCStyleCast(SourceRange R, QualType CastTy, ExprValueKind &VK,
                                 /* Complain */ true,
                                 Found);
       
-      assert(!Fn 
-                && "cast failed but able to resolve overload expression!!");
+      assert(!Fn && "cast failed but able to resolve overload expression!!");
       (void)Fn;
 
     } else {
@@ -1643,4 +1642,3 @@ Sema::CXXCheckCStyleCast(SourceRange R, QualType CastTy, ExprValueKind &VK,
 
   return Owned(CastExpr);
 }
-