summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-12-21 19:39:59 +0000
committerTed Kremenek <kremenek@apple.com>2011-12-21 19:39:59 +0000
commit1a7648b666d92b633aaff0d26e95928856b3c6f1 (patch)
tree2a1f781e1a0c746d25a3ca93fdbdb0822191e7ef /clang/lib/Analysis
parent4a39e49373cf3f754948144ef6f723c3679fe23d (diff)
downloadbcm5719-llvm-1a7648b666d92b633aaff0d26e95928856b3c6f1.tar.gz
bcm5719-llvm-1a7648b666d92b633aaff0d26e95928856b3c6f1.zip
Improve CFG pretty-printing for CXXConstructExprs.
llvm-svn: 147068
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/CFG.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 226ec7e7dea..8d7aff19ca3 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -3487,6 +3487,9 @@ static void print_elem(raw_ostream &OS, StmtPrinterHelper* Helper,
else if (isa<CXXBindTemporaryExpr>(S)) {
OS << " (BindTemporary)";
}
+ else if (const CXXConstructExpr *CCE = dyn_cast<CXXConstructExpr>(S)) {
+ OS << " (CXXConstructExpr, " << CCE->getType().getAsString() << ")";
+ }
else if (const CastExpr *CE = dyn_cast<CastExpr>(S)) {
OS << " (" << CE->getStmtClassName() << ", "
<< CE->getCastKindName()
OpenPOWER on IntegriCloud