From: Ted Kremenek Date: Thu, 20 Nov 2008 01:52:55 +0000 (+0000) Subject: Make FIXME a hard assertion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a751217e769cbe73df2d579a28153f1c947aef10;p=clang Make FIXME a hard assertion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 09b60768fc..1df4d210b8 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -173,10 +173,14 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { SrcMgr::CharacteristicKind FileType = SourceMgr.getFileCharacteristic(CurPPLexer->getFileID()); - if (CurLexer) + if (CurLexer) { + // FIXME: Should we use the location of 'Result'? Callbacks->FileChanged(CurLexer->getSourceLocation(CurLexer->BufferPtr), PPCallbacks::ExitFile, FileType); - // FIXME: Add callback support for PTHLexer. + } + else { + assert (0 && "FIXME: Add callback support for PTHLexer."); + } } // Client should lex another token.