]> granicus.if.org Git - clang/commitdiff
Make FIXME a hard assertion.
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 01:52:55 +0000 (01:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Nov 2008 01:52:55 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59695 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPLexerChange.cpp

index 09b60768fc7a712e936bce6a6f35b9f84139dbb6..1df4d210b84b75e61e702bed31f9328fec651e29 100644 (file)
@@ -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.