[cfe-commits] r171737 - in /cfe/trunk/lib/Format: UnwrappedLineParser.cpp UnwrappedLineParser.h

Manuel Klimek klimek at google.com
Mon Jan 7 06:56:16 PST 2013


Author: klimek
Date: Mon Jan  7 08:56:16 2013
New Revision: 171737

URL: http://llvm.org/viewvc/llvm-project?rev=171737&view=rev
Log:
s/parseStatement/parseStructuralElement/g in the UnwrappedLineParser.

Modified:
    cfe/trunk/lib/Format/UnwrappedLineParser.cpp
    cfe/trunk/lib/Format/UnwrappedLineParser.h

Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=171737&r1=171736&r2=171737&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Mon Jan  7 08:56:16 2013
@@ -112,7 +112,7 @@
       }
       break;
     default:
-      parseStatement();
+      parseStructuralElement();
       break;
     }
   } while (!eof());
@@ -196,7 +196,7 @@
   }
 }
 
-void UnwrappedLineParser::parseStatement() {
+void UnwrappedLineParser::parseStructuralElement() {
   parseComments();
 
   int TokenNumber = 0;
@@ -306,7 +306,7 @@
   } else {
     addUnwrappedLine();
     ++Line.Level;
-    parseStatement();
+    parseStructuralElement();
     --Line.Level;
   }
   if (FormatTok.Tok.is(tok::kw_else)) {
@@ -319,7 +319,7 @@
     } else {
       addUnwrappedLine();
       ++Line.Level;
-      parseStatement();
+      parseStructuralElement();
       --Line.Level;
     }
   } else if (NeedsUnwrappedLine) {
@@ -350,7 +350,7 @@
   } else {
     addUnwrappedLine();
     ++Line.Level;
-    parseStatement();
+    parseStructuralElement();
     --Line.Level;
   }
 }
@@ -363,7 +363,7 @@
   } else {
     addUnwrappedLine();
     ++Line.Level;
-    parseStatement();
+    parseStructuralElement();
     --Line.Level;
   }
 
@@ -374,7 +374,7 @@
   }
 
   nextToken();
-  parseStatement();
+  parseStructuralElement();
 }
 
 void UnwrappedLineParser::parseLabel() {
@@ -410,7 +410,7 @@
   } else {
     addUnwrappedLine();
     Line.Level += (Style.IndentCaseLabels ? 2 : 1);
-    parseStatement();
+    parseStructuralElement();
     Line.Level -= (Style.IndentCaseLabels ? 2 : 1);
   }
 }

Modified: cfe/trunk/lib/Format/UnwrappedLineParser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.h?rev=171737&r1=171736&r2=171737&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.h (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.h Mon Jan  7 08:56:16 2013
@@ -117,7 +117,7 @@
   void parsePPDefine();
   void parsePPUnknown();
   void parseComments();
-  void parseStatement();
+  void parseStructuralElement();
   void parseParens();
   void parseIfThenElse();
   void parseForOrWhileLoop();





More information about the cfe-commits mailing list