[ClangAstDumper] Fixes double visiting of children
@@ -224,7 +224,16 @@ void ClangAstDumper::VisitUnresolvedLookupExpr(const UnresolvedLookupExpr *Node)
visitChildrenAndData(static_cast<const Expr*>(Node));
// Call parent in hierarchy
- VisitOverloadExpr(Node, false);
+ //VisitOverloadExpr(Node, false);
+
+ // Duplicated from ClangAstDumper::VisitOverloadExpr
+ if(Node->getQualifier() != nullptr) {
+ // Can use the stream processor of decl ref expression qualifiers
+ llvm::errs() << "DECL_REF_EXPR QUALIFIER BEGIN\n";
+ llvm::errs() << getId(Node) << "\n";
+ Node->getQualifier()->dump();
+ llvm::errs() << "\nDECL_REF_EXPR QUALIFIER END\n";
+ }
}
void ClangAstDumper::VisitUnresolvedMemberExpr(const UnresolvedMemberExpr *Node) {
