From: Axel Naumann Date: Tue, 23 Sep 2014 12:47:18 +0000 (+0200) Subject: Actually print the enclosing DeclContexts. X-Git-Tag: v6-02-00-rc1~23 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=657ad077de755f48abb23d9bfa65e851eca45495 Actually print the enclosing DeclContexts. --- diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index 6f03947..adf195b 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -125,11 +125,15 @@ namespace cling { skipCurrentDecl(true); m_Visited[getCanonicalOrNamespace(D)] = false; } else { + StreamRAII Stream(*this); + std::string closeBraces = PrintEnclosingDeclContexts(D->getDeclContext()); clang::DeclVisitor::Visit(D); if (m_SkipFlag) { // D was not good, flag it. skipCurrentDecl(true); m_Visited[getCanonicalOrNamespace(D)] = false; + } else { + Out() << closeBraces; } } }