From 715eabcef5cdabaaaeabf096e670986970d08847 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 12 Jul 2008 20:28:04 +0000 Subject: Convert CRLF -> LF line endings. llvm-svn: 53519 --- clang/lib/Lex/PPLexerChange.cpp | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index bef522e346a..1bedd5eded8 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/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(); +} //===----------------------------------------------------------------------===// -- cgit v1.2.3