]> granicus.if.org Git - clang/commitdiff
Convert CRLF -> LF line endings.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 12 Jul 2008 20:28:04 +0000 (20:28 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 12 Jul 2008 20:28:04 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53519 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPLexerChange.cpp

index bef522e346af230ef099d202ae1845a39c35671a..1bedd5eded895426a76c189a933ea316d0f25a1b 100644 (file)
@@ -126,27 +126,27 @@ Token Preprocessor::LookAhead(unsigned N) {
   return Tok;
 }
 
-/// PeekToken - Lexes one token into PeekedToken and pushes CurLexer,\r
-/// CurLexerToken into the IncludeMacroStack before setting them to null.\r
-void Preprocessor::PeekToken() {\r
-  Lex(PeekedToken);\r
-  // Cache the current Lexer, TokenLexer and set them both to null.\r
-  // When Lex() is called, PeekedToken will be "consumed".\r
-  IncludeMacroStack.push_back(IncludeStackInfo(CurLexer, CurDirLookup,\r
-                                               CurTokenLexer));\r
-  CurLexer = 0;\r
-  CurTokenLexer = 0;\r
-}\r
-
-/// ConsumedPeekedToken - Called when Lex() is about to return the PeekedToken\r
-/// and have it "consumed".\r
-void Preprocessor::ConsumedPeekedToken() {\r
-  assert(PeekedToken.getLocation().isValid() && "Confused Peeking?");\r
-  // Restore CurLexer, TokenLexer.\r
-  RemoveTopOfLexerStack();\r
-  // Make PeekedToken invalid.\r
-  PeekedToken.startToken();\r
-}\r
+/// PeekToken - Lexes one token into PeekedToken and pushes CurLexer,
+/// CurLexerToken into the IncludeMacroStack before setting them to null.
+void Preprocessor::PeekToken() {
+  Lex(PeekedToken);
+  // Cache the current Lexer, TokenLexer and set them both to null.
+  // When Lex() is called, PeekedToken will be "consumed".
+  IncludeMacroStack.push_back(IncludeStackInfo(CurLexer, CurDirLookup,
+                                               CurTokenLexer));
+  CurLexer = 0;
+  CurTokenLexer = 0;
+}
+
+/// ConsumedPeekedToken - Called when Lex() is about to return the PeekedToken
+/// and have it "consumed".
+void Preprocessor::ConsumedPeekedToken() {
+  assert(PeekedToken.getLocation().isValid() && "Confused Peeking?");
+  // Restore CurLexer, TokenLexer.
+  RemoveTopOfLexerStack();
+  // Make PeekedToken invalid.
+  PeekedToken.startToken();
+}
 
 
 //===----------------------------------------------------------------------===//