From: Axel Naumann Date: Thu, 18 Sep 2014 21:43:48 +0000 (+0200) Subject: Fix position of "inline" in "inline namespace" (MacOS G__MathCore failure). X-Git-Tag: v6-02-00-rc1~56 X-Git-Url: https://root.cern.ch/gitweb?p=root.git;a=commitdiff_plain;h=d951685aea3641b8ff56beb61a6e0134a2cca635 Fix position of "inline" in "inline namespace" (MacOS G__MathCore failure). --- diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index d87ea2f..a13b75b 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -684,9 +684,9 @@ namespace cling { haveAnyDecl = true; } if (haveAnyDecl) { + std::string output = stream.take(true); if (D->isInline()) Out() << "inline "; - std::string output = stream.take(true); Out() << "namespace " << *D << " {\n" << output << "}\n"; } }