From: Ted Kremenek Date: Wed, 21 Dec 2011 19:32:38 +0000 (+0000) Subject: Improve CFG pretty-printing of CastExprs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=893d414534273e153e12aef39a1ad991c6fa94c0;p=clang Improve CFG pretty-printing of CastExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147066 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index de404d05f7..226ec7e7de 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -3483,9 +3483,16 @@ static void print_elem(raw_ostream &OS, StmtPrinterHelper* Helper, if (isa(S)) { OS << " (OperatorCall)"; - } else if (isa(S)) { + } + else if (isa(S)) { OS << " (BindTemporary)"; } + else if (const CastExpr *CE = dyn_cast(S)) { + OS << " (" << CE->getStmtClassName() << ", " + << CE->getCastKindName() + << ", " << CE->getType().getAsString() + << ")"; + } // Expressions need a newline. if (isa(S))