return Tok;
}
-/// PeekToken - Lexes one token into PeekedToken and pushes CurLexer,\r
-/// CurLexerToken into the IncludeMacroStack before setting them to null.\r
-void Preprocessor::PeekToken() {\r
- Lex(PeekedToken);\r
- // Cache the current Lexer, TokenLexer and set them both to null.\r
- // When Lex() is called, PeekedToken will be "consumed".\r
- IncludeMacroStack.push_back(IncludeStackInfo(CurLexer, CurDirLookup,\r
- CurTokenLexer));\r
- CurLexer = 0;\r
- CurTokenLexer = 0;\r
-}\r
-
-/// ConsumedPeekedToken - Called when Lex() is about to return the PeekedToken\r
-/// and have it "consumed".\r
-void Preprocessor::ConsumedPeekedToken() {\r
- assert(PeekedToken.getLocation().isValid() && "Confused Peeking?");\r
- // Restore CurLexer, TokenLexer.\r
- RemoveTopOfLexerStack();\r
- // Make PeekedToken invalid.\r
- PeekedToken.startToken();\r
-}\r
+/// 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();
+}
//===----------------------------------------------------------------------===//