diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-02-15 00:35:38 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-02-15 00:35:38 +0000 |
| commit | e161afc4dd89357b94f8b7247029b1cbf8774e0b (patch) | |
| tree | 5d4ba7fab01177c8d4842f0682227308ab052be4 /clang/Analysis/GRSimpleVals.cpp | |
| parent | 6ca3ccf519290ba7ec0776fad89c7dab5a8c4f78 (diff) | |
| download | bcm5719-llvm-e161afc4dd89357b94f8b7247029b1cbf8774e0b.tar.gz bcm5719-llvm-e161afc4dd89357b94f8b7247029b1cbf8774e0b.zip | |
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
Diffstat (limited to 'clang/Analysis/GRSimpleVals.cpp')
| -rw-r--r-- | clang/Analysis/GRSimpleVals.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |

