[cfe-commits] r82128 - in /cfe/trunk/lib: AST/Expr.cpp Sema/SemaExpr.cpp

Daniel Dunbar daniel at zuster.org
Wed Sep 16 23:31:17 PDT 2009


Author: ddunbar
Date: Thu Sep 17 01:31:17 2009
New Revision: 82128

URL: http://llvm.org/viewvc/llvm-project?rev=82128&view=rev
Log:
Remove trailing whitespace.

Modified:
    cfe/trunk/lib/AST/Expr.cpp
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=82128&r1=82127&r2=82128&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Thu Sep 17 01:31:17 2009
@@ -1069,14 +1069,14 @@
     if (!BDR->isByRef() && isa<VarDecl>(BDR->getDecl()))
       return MLV_NotBlockQualified;
   }
-  
+
   // Assigning to an 'implicit' property?
-  if (const ObjCImplicitSetterGetterRefExpr* Expr = 
+  if (const ObjCImplicitSetterGetterRefExpr* Expr =
         dyn_cast<ObjCImplicitSetterGetterRefExpr>(this)) {
     if (Expr->getSetterMethod() == 0)
       return MLV_NoSetterProperty;
   }
-  
+
   QualType CT = Ctx.getCanonicalType(getType());
 
   if (CT.isConstQualified())
@@ -1119,7 +1119,7 @@
       QualType T = VD->getType();
       // dereferencing to a  pointer is always a gc'able candidate,
       // unless it is __weak.
-      return T->isPointerType() && 
+      return T->isPointerType() &&
              (Ctx.getObjCGCAttrKind(T) != QualType::Weak);
     }
     return false;
@@ -1371,11 +1371,11 @@
   case Expr::NoStmtClass:
   case Expr::ExprClass:
     return ICEDiag(2, E->getLocStart());
-      
+
   case Expr::GNUNullExprClass:
     // GCC considers the GNU __null value to be an integral constant expression.
     return NoDiag();
-      
+
   case Expr::ParenExprClass:
     return CheckICE(cast<ParenExpr>(E)->getSubExpr(), Ctx);
   case Expr::IntegerLiteralClass:
@@ -1431,7 +1431,7 @@
     case UnaryOperator::AddrOf:
     case UnaryOperator::Deref:
       return ICEDiag(2, E->getLocStart());
-        
+
     case UnaryOperator::Extension:
     case UnaryOperator::LNot:
     case UnaryOperator::Plus:
@@ -1473,7 +1473,7 @@
     case BinaryOperator::XorAssign:
     case BinaryOperator::OrAssign:
       return ICEDiag(2, E->getLocStart());
-        
+
     case BinaryOperator::Mul:
     case BinaryOperator::Div:
     case BinaryOperator::Rem:
@@ -1601,7 +1601,7 @@
     return CheckICE(cast<ChooseExpr>(E)->getChosenSubExpr(Ctx), Ctx);
   }
   }
-  
+
   // Silence a GCC warning
   return ICEDiag(2, E->getLocStart());
 }

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=82128&r1=82127&r2=82128&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Sep 17 01:31:17 2009
@@ -1002,7 +1002,7 @@
           MarkDeclarationReferenced(Loc, D);
           if (PerformObjectMemberConversion(This, D))
             return ExprError();
-          
+
           bool ShouldCheckUse = true;
           if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) {
             // Don't diagnose the use of a virtual member function unless it's
@@ -1010,7 +1010,7 @@
             if (MD->isVirtual() && (!SS || !SS->isSet()))
               ShouldCheckUse = false;
           }
-          
+
           if (ShouldCheckUse && DiagnoseUseOfDecl(D, Loc))
             return ExprError();
           return Owned(BuildMemberExpr(Context, This, true, SS, D,
@@ -1809,7 +1809,7 @@
     return ExprError(Diag(LLoc, diag::err_typecheck_subscript_not_integer)
                      << IndexExpr->getSourceRange());
 
-  if ((IndexExpr->getType()->isSpecificBuiltinType(BuiltinType::Char_S) || 
+  if ((IndexExpr->getType()->isSpecificBuiltinType(BuiltinType::Char_S) ||
        IndexExpr->getType()->isSpecificBuiltinType(BuiltinType::Char_U))
          && !IndexExpr->isTypeDependent())
     Diag(LLoc, diag::warn_subscript_is_char) << IndexExpr->getSourceRange();
@@ -2168,7 +2168,7 @@
       if (MD->isVirtual() && (!SS || !SS->isSet()))
         ShouldCheckUse = false;
     }
-    
+
     // Check the use of this field
     if (ShouldCheckUse && DiagnoseUseOfDecl(MemberDecl, MemberLoc))
       return ExprError();
@@ -3204,12 +3204,12 @@
     return ExprError();
 
   if (Method) {
-    OwningExprResult CastArg = BuildCXXCastArgument(LParenLoc, castType, Kind, 
+    OwningExprResult CastArg = BuildCXXCastArgument(LParenLoc, castType, Kind,
                                                     Method, move(Op));
-    
+
     if (CastArg.isInvalid())
       return ExprError();
-    
+
     castExpr = CastArg.takeAs<Expr>();
   } else {
     Op.release();
@@ -6143,4 +6143,3 @@
     return;
   }
 }
-





More information about the cfe-commits mailing list