From 4d2b3f73dafe700cdfee7ed342f5bb17a814109c Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Mon, 22 Sep 2014 15:04:01 +0200 Subject: [PATCH] Desugar to simplify the type. --- interpreter/cling/lib/Interpreter/ForwardDeclPrinter.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.h b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.h index c739f61..34f7bc0 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.h +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.h @@ -144,7 +144,11 @@ namespace cling { void VisitTypeAliasTemplateDecl(clang::TypeAliasTemplateDecl* D); // Not coming from the RecursiveASTVisitor - void Visit(clang::QualType QT) { Visit(QT.getTypePtr()); } + void Visit(clang::QualType QT) { + QT = utils::TypeName::GetFullyQualifiedType(QT); + QT = utils::Transform::GetPartiallyDesugaredType(QT); + Visit(.getTypePtr()); + } void Visit(const clang::Type* T); void VisitNestedNameSpecifier(const clang::NestedNameSpecifier* NNS); void VisitTemplateArgument(const clang::TemplateArgument& TA); -- 1.8.2