From: Axel Naumann Date: Wed, 24 Sep 2014 08:35:58 +0000 (+0200) Subject: For template instances, forward declare its arguments. X-Git-Tag: v6-02-00-rc1~16 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=8847cb3c0fbfebabd45077c48258da40c02713a8 For template instances, forward declare its arguments. Still missing a fwd decl of explicit instantiations! --- diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index ca4dc4a..b909830 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -962,14 +962,15 @@ namespace cling { void ForwardDeclPrinter:: VisitClassTemplateSpecializationDecl(ClassTemplateSpecializationDecl* D) { - D->printName(Log()); - Log() << " ClassTemplateSpecialization : Skipped by default\n"; // if (shouldSkip(D)) { // skipDecl(); // return; // } -// const TemplateArgumentList& iargs = D->getTemplateInstantiationArgs(); + const TemplateArgumentList& iargs = D->getTemplateInstantiationArgs(); + for (const TemplateArgument& TA: iargs.asArray()) { + VisitTemplateArgument(TA); + } // Out() << "template <> "; // VisitCXXRecordDecl(D->getCanonicalDecl());