[cfe-commits] r91163 - /cfe/trunk/lib/AST/StmtDumper.cpp

John McCall rjmccall at apple.com
Fri Dec 11 13:50:11 PST 2009


Author: rjmccall
Date: Fri Dec 11 15:50:11 2009
New Revision: 91163

URL: http://llvm.org/viewvc/llvm-project?rev=91163&view=rev
Log:
StmtDumper::VisitUnresolvedLookupExpr


Modified:
    cfe/trunk/lib/AST/StmtDumper.cpp

Modified: cfe/trunk/lib/AST/StmtDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtDumper.cpp?rev=91163&r1=91162&r2=91163&view=diff

==============================================================================
--- cfe/trunk/lib/AST/StmtDumper.cpp (original)
+++ cfe/trunk/lib/AST/StmtDumper.cpp Fri Dec 11 15:50:11 2009
@@ -139,6 +139,7 @@
     void VisitCXXConstructExpr(CXXConstructExpr *Node);
     void VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *Node);
     void VisitCXXExprWithTemporaries(CXXExprWithTemporaries *Node);
+    void VisitUnresolvedLookupExpr(UnresolvedLookupExpr *Node);
     void DumpCXXTemporary(CXXTemporary *Temporary);
 
     // ObjC
@@ -331,6 +332,19 @@
      << "' " << (void*)Node->getDecl();
 }
 
+void StmtDumper::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *Node) {
+  DumpExpr(Node);
+  OS << " (";
+  if (!Node->requiresADL()) OS << "no ";
+  OS << "ADL) = '" << Node->getName().getAsString() << "'";
+
+  UnresolvedLookupExpr::decls_iterator
+    I = Node->decls_begin(), E = Node->decls_end();
+  if (I == E) OS << " empty";
+  for (; I != E; ++I)
+    OS << " " << (void*) *I;
+}
+
 void StmtDumper::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
   DumpExpr(Node);
 





More information about the cfe-commits mailing list