namespace clang {
-class Decl;
class IdentifierInfo;
/// Token - This structure provides full information about a lexed token.
PtrData = (void*) II;
}
- const Decl *getDecl() const {
+ const void *getEofData() const {
assert(is(tok::eof));
- return reinterpret_cast<const Decl *>(PtrData);
+ return reinterpret_cast<const void *>(PtrData);
}
- void setDecl(const Decl *D) {
+ void setEofData(const void *D) {
assert(is(tok::eof));
assert(!PtrData);
- PtrData = const_cast<Decl *>(D);
+ PtrData = const_cast<void *>(D);
}
/// getRawIdentifier - For a raw identifier token (i.e., an identifier
Eof.startToken();
Eof.setKind(tok::eof);
Eof.setLocation(Tok.getLocation());
- Eof.setDecl(VarD);
+ Eof.setEofData(VarD);
Toks.push_back(Eof);
}
ConsumeAnyToken();
}
// Make sure this is *our* artificial EOF token.
- if (Tok.getDecl() == MI.Field)
+ if (Tok.getEofData() == MI.Field)
ConsumeAnyToken();
}