From 1a7648b666d92b633aaff0d26e95928856b3c6f1 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 21 Dec 2011 19:39:59 +0000 Subject: [PATCH] Improve CFG pretty-printing for CXXConstructExprs. llvm-svn: 147068 --- clang/lib/Analysis/CFG.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index 226ec7e7dea1..8d7aff19ca34 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(S)) { OS << " (BindTemporary)"; } + else if (const CXXConstructExpr *CCE = dyn_cast(S)) { + OS << " (CXXConstructExpr, " << CCE->getType().getAsString() << ")"; + } else if (const CastExpr *CE = dyn_cast(S)) { OS << " (" << CE->getStmtClassName() << ", " << CE->getCastKindName()