Improve CFG pretty-printing for CXXConstructExprs.

llvm-svn: 147068
This commit is contained in:
Ted Kremenek 2011-12-21 19:39:59 +00:00
parent 4a39e49373
commit 1a7648b666
1 changed files with 3 additions and 0 deletions

View File

@ -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()