[cfe-commits] r160017 - /cfe/trunk/lib/Parse/ParseStmt.cpp

Chad Rosier mcrosier at apple.com
Tue Jul 10 14:35:27 PDT 2012


Author: mcrosier
Date: Tue Jul 10 16:35:27 2012
New Revision: 160017

URL: http://llvm.org/viewvc/llvm-project?rev=160017&view=rev
Log:
80-column violations and whitespace.

Modified:
    cfe/trunk/lib/Parse/ParseStmt.cpp

Modified: cfe/trunk/lib/Parse/ParseStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=160017&r1=160016&r2=160017&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseStmt.cpp (original)
+++ cfe/trunk/lib/Parse/ParseStmt.cpp Tue Jul 10 16:35:27 2012
@@ -896,7 +896,7 @@
 
   // Otherwise the condition is valid or the rparen is present.
   T.consumeClose();
-  
+
   // Check for extraneous ')'s to catch things like "if (foo())) {".  We know
   // that all callers are looking for a statement after the condition, so ")"
   // isn't valid.
@@ -905,7 +905,7 @@
       << FixItHint::CreateRemoval(Tok.getLocation());
     ConsumeParen();
   }
-  
+
   return false;
 }
 
@@ -1259,7 +1259,7 @@
   // Parse the parenthesized condition.
   BalancedDelimiterTracker T(*this, tok::l_paren);
   T.consumeOpen();
-  
+
   // FIXME: Do not just parse the attribute contents and throw them away
   ParsedAttributesWithRange attrs(AttrFactory);
   MaybeParseCXX0XAttributes(attrs);
@@ -1305,7 +1305,8 @@
     return StmtError();
   }
 
-  bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus || getLangOpts().ObjC1;
+  bool C99orCXXorObjC = getLangOpts().C99 || getLangOpts().CPlusPlus ||
+    getLangOpts().ObjC1;
 
   // C99 6.8.5p5 - In C99, the for statement is a block.  This is not
   // the case for C90.  Start the loop scope.
@@ -1492,7 +1493,7 @@
   // of an auto-typed loop variable.
   StmtResult ForRangeStmt;
   StmtResult ForEachStmt;
-  
+
   if (ForRange) {
     ForRangeStmt = Actions.ActOnCXXForRangeStmt(ForLoc, T.getOpenLocation(),
                                                 FirstPart.take(),
@@ -1506,7 +1507,7 @@
   } else if (ForEach) {
     ForEachStmt = Actions.ActOnObjCForCollectionStmt(ForLoc, T.getOpenLocation(),
                                                      FirstPart.take(),
-                                                     Collection.take(), 
+                                                     Collection.take(),
                                                      T.getCloseLocation());
   }
 
@@ -1638,7 +1639,7 @@
 }
 
 // needSpaceAsmToken - This function handles whitespace around asm punctuation.
-// Returns true if a space should be emitted.  
+// Returns true if a space should be emitted.
 static inline bool needSpaceAsmToken(Token currTok) {
   static Token prevTok;
 
@@ -1802,7 +1803,7 @@
   for (unsigned i = 0, e = AsmToks.size(); i < e; ++i) {
     const char *ThisTokBuf = &TokenBuf[0];
     bool StringInvalid = false;
-    unsigned ThisTokLen = 
+    unsigned ThisTokLen =
       Lexer::getSpelling(AsmToks[i], ThisTokBuf, PP.getSourceManager(),
                          PP.getLangOpts(), &StringInvalid);
     if (i && (!AsmLineNum || i != LineEnds[AsmLineNum-1]) &&
@@ -1846,7 +1847,8 @@
   assert(Tok.is(tok::kw_asm) && "Not an asm stmt");
   SourceLocation AsmLoc = ConsumeToken();
 
-  if (getLangOpts().MicrosoftExt && Tok.isNot(tok::l_paren) && !isTypeQualifier()) {
+  if (getLangOpts().MicrosoftExt && Tok.isNot(tok::l_paren) &&
+      !isTypeQualifier()) {
     msAsm = true;
     return ParseMicrosoftAsmStatement(AsmLoc);
   }
@@ -2149,7 +2151,7 @@
     return move(TryBlock);
 
   // Borland allows SEH-handlers with 'try'
-  
+
   if ((Tok.is(tok::identifier) &&
        Tok.getIdentifierInfo() == getSEHExceptKeyword()) ||
       Tok.is(tok::kw___finally)) {
@@ -2189,7 +2191,7 @@
     if (Handlers.empty())
       return StmtError();
 
-    return Actions.ActOnCXXTryBlock(TryLoc, TryBlock.take(), move_arg(Handlers));
+    return Actions.ActOnCXXTryBlock(TryLoc, TryBlock.take(),move_arg(Handlers));
   }
 }
 
@@ -2285,10 +2287,10 @@
   case IEB_Parse:
     // Parse the statements below.
     break;
-      
+
   case IEB_Dependent:
     llvm_unreachable("Dependent case handled above");
-      
+
   case IEB_Skip:
     Braces.skipToEnd();
     return;





More information about the cfe-commits mailing list