[cfe-commits] r49685 - /cfe/trunk/Driver/ASTConsumers.cpp

Ted Kremenek kremenek at apple.com
Mon Apr 14 14:14:42 PDT 2008


Author: kremenek
Date: Mon Apr 14 16:14:41 2008
New Revision: 49685

URL: http://llvm.org/viewvc/llvm-project?rev=49685&view=rev
Log:
Use SourceManager::isFromMainFile()

Modified:
    cfe/trunk/Driver/ASTConsumers.cpp

Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=49685&r1=49684&r2=49685&view=diff

==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Mon Apr 14 16:14:41 2008
@@ -670,7 +670,7 @@
   if (!Loc.isFileID())
     return;
   
-  if (!AnalyzeAll && Loc.getFileID() != Ctx->getSourceManager().getMainFileID())
+  if (!AnalyzeAll && !Ctx->getSourceManager().isFromMainFile(Loc))
     return;
   
   // Lazily create the diagnostic client.





More information about the cfe-commits mailing list