For now, --grsimple skips analyzing functions in header files.

llvm-svn: 47303
This commit is contained in:
Ted Kremenek 2008-02-19 02:33:31 +00:00
parent 634a8f9275
commit dbb1a3724c
1 changed files with 4 additions and 0 deletions

View File

@ -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())