For now, --grsimple skips analyzing functions in header files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47303 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp
index 305503f..9dcc28a 100644
--- a/Driver/ASTConsumers.cpp
+++ b/Driver/ASTConsumers.cpp
@@ -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())