forked from OSchip/llvm-project
parent
13ad6e1234
commit
9569e57a50
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue