From: Argyrios Kyrtzidis Date: Sat, 12 Jul 2008 20:28:04 +0000 (+0000) Subject: Convert CRLF -> LF line endings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63cf923e411177f8bf626961b5fc4afa1594b1bc;p=clang Convert CRLF -> LF line endings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53519 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index bef522e346..1bedd5eded 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -126,27 +126,27 @@ Token Preprocessor::LookAhead(unsigned N) { 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(); +} //===----------------------------------------------------------------------===//