[cfe-commits] r47303 - /cfe/trunk/Driver/ASTConsumers.cpp
Ted Kremenek
kremenek at apple.com
Mon Feb 18 18:33:32 PST 2008
Author: kremenek
Date: Mon Feb 18 20:33:31 2008
New Revision: 47303
URL: http://llvm.org/viewvc/llvm-project?rev=47303&view=rev
Log:
For now, --grsimple skips analyzing functions in header files.
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=47303&r1=47302&r2=47303&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Mon Feb 18 20:33:31 2008
@@ -604,6 +604,10 @@
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())
More information about the cfe-commits
mailing list