]> granicus.if.org Git - clang/commitdiff
Dump the constructor type for a CXXConstructExpr.
authorJohn McCall <rjmccall@apple.com>
Tue, 2 Feb 2010 19:03:45 +0000 (19:03 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 2 Feb 2010 19:03:45 +0000 (19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95106 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/StmtDumper.cpp

index ae76526b79396a92d28242950c6ae9b49502b921..ba6218be1426acb794198f1d4995f919594358e6 100644 (file)
@@ -472,6 +472,8 @@ void StmtDumper::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr *Node) {
 
 void StmtDumper::VisitCXXConstructExpr(CXXConstructExpr *Node) {
   DumpExpr(Node);
+  CXXConstructorDecl *Ctor = Node->getConstructor();
+  DumpType(Ctor->getType());
   if (Node->isElidable())
     OS << " elidable";
 }