From d951685aea3641b8ff56beb61a6e0134a2cca635 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Thu, 18 Sep 2014 23:43:48 +0200 Subject: [PATCH] Fix position of "inline" in "inline namespace" (MacOS G__MathCore failure). --- interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } } -- 1.8.2