StmtDumper::VisitUnresolvedLookupExpr

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John McCall 2009-12-11 21:50:11 +00:00
Родитель 1f7711d113
Коммит 9d5f35e112
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -139,6 +139,7 @@ namespace {
void VisitCXXConstructExpr(CXXConstructExpr *Node); void VisitCXXConstructExpr(CXXConstructExpr *Node);
void VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *Node); void VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *Node);
void VisitCXXExprWithTemporaries(CXXExprWithTemporaries *Node); void VisitCXXExprWithTemporaries(CXXExprWithTemporaries *Node);
void VisitUnresolvedLookupExpr(UnresolvedLookupExpr *Node);
void DumpCXXTemporary(CXXTemporary *Temporary); void DumpCXXTemporary(CXXTemporary *Temporary);
// ObjC // ObjC
@ -331,6 +332,19 @@ void StmtDumper::VisitDeclRefExpr(DeclRefExpr *Node) {
<< "' " << (void*)Node->getDecl(); << "' " << (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) { void StmtDumper::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
DumpExpr(Node); DumpExpr(Node);