From e161afc4dd89357b94f8b7247029b1cbf8774e0b Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 15 Feb 2008 00:35:38 +0000 Subject: Added --grsimple-view option to clang driver; this is the same as --grsimple except that it visualizes the ExplodedGraph using dot and outputs the current function being analyzed. --grsimple is now silent except when it emits diagnostics. llvm-svn: 47146 --- clang/Analysis/GRSimpleVals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/Analysis/GRSimpleVals.cpp') diff --git a/clang/Analysis/GRSimpleVals.cpp b/clang/Analysis/GRSimpleVals.cpp index 1e438ee5b3d..e856c3e5d08 100644 --- a/clang/Analysis/GRSimpleVals.cpp +++ b/clang/Analysis/GRSimpleVals.cpp @@ -20,7 +20,7 @@ using namespace clang; namespace clang { void RunGRSimpleVals(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx, - Diagnostic& Diag) { + Diagnostic& Diag, bool Visualize) { if (Diag.hasErrorOccurred()) return; @@ -45,7 +45,7 @@ namespace clang { } #ifndef NDEBUG - CheckerState->ViewGraph(); + if (Visualize) CheckerState->ViewGraph(); #endif } } // end clang namespace -- cgit v1.2.3