summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-12-22 23:33:52 +0000
committerTed Kremenek <kremenek@apple.com>2011-12-22 23:33:52 +0000
commit72be32af88cdaf2a22a4e5d631b53347bdefcd10 (patch)
treea9833ac6ff1f3ecd6e93134bb43ce8a741ac3882 /clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
parent3cef10814aedc310500d7f52e8358ae6777047dc (diff)
downloadbcm5719-llvm-72be32af88cdaf2a22a4e5d631b53347bdefcd10.tar.gz
bcm5719-llvm-72be32af88cdaf2a22a4e5d631b53347bdefcd10.zip
Colorize and condense CFG pretty-printing.
llvm-svn: 147203
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
index bd1b8542f67..d7e7af1c8ea 100644
--- a/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
@@ -16,6 +16,7 @@
#include "clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h"
#include "clang/Analysis/Analyses/LiveVariables.h"
#include "clang/Analysis/Analyses/Dominators.h"
+#include "llvm/Support/Process.h"
using namespace clang;
using namespace ento;
@@ -92,7 +93,8 @@ public:
void checkASTCodeBody(const Decl *D, AnalysisManager& mgr,
BugReporter &BR) const {
if (CFG *cfg = mgr.getCFG(D)) {
- cfg->dump(mgr.getLangOptions());
+ cfg->dump(mgr.getLangOptions(),
+ llvm::sys::Process::StandardErrHasColors());
}
}
};
OpenPOWER on IntegriCloud