[cfe-commits] r53519 - /cfe/trunk/lib/Lex/PPLexerChange.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Sat Jul 12 13:28:04 PDT 2008


Author: akirtzidis
Date: Sat Jul 12 15:28:04 2008
New Revision: 53519

URL: http://llvm.org/viewvc/llvm-project?rev=53519&view=rev
Log:
Convert CRLF -> LF line endings.

Modified:
    cfe/trunk/lib/Lex/PPLexerChange.cpp

Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=53519&r1=53518&r2=53519&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Sat Jul 12 15:28:04 2008
@@ -126,27 +126,27 @@
   return Tok;
 }
 
-/// 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();
-}
+/// 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();
+}
 
 
 //===----------------------------------------------------------------------===//





More information about the cfe-commits mailing list