diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-07-12 20:28:04 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-07-12 20:28:04 +0000 |
commit | 63cf923e411177f8bf626961b5fc4afa1594b1bc (patch) | |
tree | 4ba3ed291b9815df552ec9e9720361726ac3376a /lib/Lex/PPLexerChange.cpp | |
parent | a31bfc24fc7d2d7d13974a712d8ecb73bd3cd8ff (diff) |
Convert CRLF -> LF line endings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
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(); +} //===----------------------------------------------------------------------===// |