summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-12 20:28:04 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-12 20:28:04 +0000
commit715eabcef5cdabaaaeabf096e670986970d08847 (patch)
treec5482a60353468f1d85c26172bd1234be5dadfa6 /clang/lib/Lex/PPLexerChange.cpp
parent71262487c3dc2c503b8a21f130c500aeca9af276 (diff)
downloadbcm5719-llvm-715eabcef5cdabaaaeabf096e670986970d08847.tar.gz
bcm5719-llvm-715eabcef5cdabaaaeabf096e670986970d08847.zip
Convert CRLF -> LF line endings.
llvm-svn: 53519
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp42
1 files changed, 21 insertions, 21 deletions
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();
+}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud