parent
b33ce32bda
commit
2af3cee287
|
@ -173,10 +173,14 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) {
|
||||||
SrcMgr::CharacteristicKind FileType =
|
SrcMgr::CharacteristicKind FileType =
|
||||||
SourceMgr.getFileCharacteristic(CurPPLexer->getFileID());
|
SourceMgr.getFileCharacteristic(CurPPLexer->getFileID());
|
||||||
|
|
||||||
if (CurLexer)
|
if (CurLexer) {
|
||||||
|
// FIXME: Should we use the location of 'Result'?
|
||||||
Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr),
|
Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr),
|
||||||
PPCallbacks::ExitFile, FileType);
|
PPCallbacks::ExitFile, FileType);
|
||||||
// FIXME: Add callback support for PTHLexer.
|
}
|
||||||
|
else {
|
||||||
|
assert (0 && "FIXME: Add callback support for PTHLexer.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client should lex another token.
|
// Client should lex another token.
|
||||||
|
|
Loading…
Reference in New Issue