forked from OSchip/llvm-project
For now, --grsimple skips analyzing functions in header files.
llvm-svn: 47303
This commit is contained in:
parent
634a8f9275
commit
dbb1a3724c
|
@ -604,6 +604,10 @@ void GRSimpleValsVisitor::VisitCFG(CFG& C, FunctionDecl& FD) {
|
|||
if (FName.size() > 0 && FName != FD.getIdentifier()->getName())
|
||||
return;
|
||||
|
||||
if (FD.getLocation().getFileID() != Ctx->getSourceManager().getMainFileID())
|
||||
return;
|
||||
|
||||
|
||||
if (!Visualize) {
|
||||
llvm::cerr << "ANALYZE: " << FD.getIdentifier()->getName() << ' '
|
||||
<< Ctx->getSourceManager().getSourceName(FD.getLocation())
|
||||
|
|
Loading…
Reference in New Issue