Use SourceManager::isFromMainFile()

llvm-svn: 49685
This commit is contained in:
Ted Kremenek 2008-04-14 21:14:41 +00:00
parent 13ad6e1234
commit 9569e57a50
1 changed files with 1 additions and 1 deletions

View File

@ -670,7 +670,7 @@ void CheckerConsumer::VisitCFG(CFG& C, Decl& CD) {
if (!Loc.isFileID())
return;
if (!AnalyzeAll && Loc.getFileID() != Ctx->getSourceManager().getMainFileID())
if (!AnalyzeAll && !Ctx->getSourceManager().isFromMainFile(Loc))
return;
// Lazily create the diagnostic client.