/// TokBuf - Buffer from PTH file containing raw token data.
const char* TokBuf;
- /// CurTokenIdx - This is the index of the next token that Lex will return.
- unsigned CurTokenIdx;
-
PTHLexer(const PTHLexer&); // DO NOT IMPLEMENT
void operator=(const PTHLexer&); // DO NOT IMPLEMENT
Token GetToken();
/// AdvanceToken - Advances the PTHLexer to the next token.
- void AdvanceToken() { ++CurTokenIdx; NeedsFetching = true; }
+ void AdvanceToken() { NeedsFetching = true; }
bool LexEndOfFile(Token &Result);
};
PTHLexer::PTHLexer(Preprocessor& pp, SourceLocation fileloc, const char* D,
PTHManager& PM)
- : PreprocessorLexer(&pp, fileloc), TokBuf(D), CurTokenIdx(0), PTHMgr(PM),
+ : PreprocessorLexer(&pp, fileloc), TokBuf(D), PTHMgr(PM),
NeedsFetching(true) {
// Make sure the EofToken is completely clean.
EofToken.startToken();