From: Axel Naumann Date: Tue, 23 Sep 2014 12:37:05 +0000 (+0200) Subject: extern "C" is printed by the decl itself. X-Git-Tag: v6-02-00-rc1~24 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=8e983a8220a6e19d5eb6bf89d6b951255f204c46 extern "C" is printed by the decl itself. --- diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index 54f3d30..6f03947 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -758,18 +758,9 @@ namespace cling { } void ForwardDeclPrinter::VisitLinkageSpecDecl(LinkageSpecDecl *D) { - PrintLinkageOpen(D); - if (D->hasBraces()) { -// VisitDeclContext(D); //To skip weird typedefs and struct definitions - for (auto it = D->decls_begin(); it != D->decls_end(); ++it) { - Visit(*it); - skipCurrentDecl(false); - } - Out() << "}"; - } else { - Out() << "{\n"; // print braces anyway, as the decl may end up getting skipped - Visit(*D->decls_begin()); - Out() << ";}\n"; + for (auto it = D->decls_begin(); it != D->decls_end(); ++it) { + Visit(*it); + skipCurrentDecl(false); } }