From: Axel Naumann Date: Fri, 12 Sep 2014 14:20:14 +0000 (+0200) Subject: Use fully qualified template args. X-Git-Tag: v6-02-00-rc1~128^2~1 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=e188b339b0263cefd810bf809f185681c9afc8b7 Use fully qualified template args. --- diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index a3d70a1..c0d016d 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -2,6 +2,7 @@ #include "cling/Interpreter/DynamicLibraryManager.h" #include "cling/Interpreter/Transaction.h" +#include "cling/Utils/AST.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Decl.h" @@ -820,14 +821,20 @@ namespace cling { Out() << *TTP; + QualType ArgQT; if (Args) { - Out() << " = "; - Args->get(i).print(m_Policy, Out()); + ArgQT = Args->get(i).getAsType(); } else if (TTP->hasDefaultArgument() && !TTP->defaultArgumentWasInherited()) { + ArgQT = TTP->getDefaultArgument(); + } + if (!ArgQT.isNull()) { + QualType ArgFQQT + = utils::TypeName::GetFullyQualifiedType(ArgQT, + TTP->getASTContext()); Out() << " = "; - Out() << TTP->getDefaultArgument().getAsString(m_Policy); + ArgFQQT.print(Out(), m_Policy); } } else if (const NonTypeTemplateParmDecl *NTTP =