From aaab1dca48adc98cdfafbb66bdd0034bdf29d18f Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Wed, 17 Oct 2012 07:38:08 +0000 Subject: [PATCH] We need to analyze the whole transaction. (Thanks Axel!) git-svn-id: http://root.cern.ch/svn/root/trunk@46589 27541ba8-7e3a-0410-8455-c3a389f83636 --- lib/Interpreter/ReturnSynthesizer.cpp | 2 +- lib/Interpreter/ValuePrinterSynthesizer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/ReturnSynthesizer.cpp b/lib/Interpreter/ReturnSynthesizer.cpp index f021f13f..3b0f982b 100644 --- a/lib/Interpreter/ReturnSynthesizer.cpp +++ b/lib/Interpreter/ReturnSynthesizer.cpp @@ -34,7 +34,7 @@ namespace cling { I != E; ++I) if (FunctionDecl* FD = dyn_cast(*I)) { if (FD->getNameAsString().find("__cling_Un1Qu3")) - return; + continue; int foundAtPos = -1; if (Expr* lastExpr = utils::Analyze::GetLastExpr(FD, &foundAtPos)) { diff --git a/lib/Interpreter/ValuePrinterSynthesizer.cpp b/lib/Interpreter/ValuePrinterSynthesizer.cpp index 6dcc9a3c..fba04c53 100644 --- a/lib/Interpreter/ValuePrinterSynthesizer.cpp +++ b/lib/Interpreter/ValuePrinterSynthesizer.cpp @@ -56,7 +56,7 @@ namespace cling { for (DeclGroupRef::iterator I = DGR.begin(), E = DGR.end(); I != E; ++I) if (FunctionDecl* FD = dyn_cast(*I)) { if (FD->getNameAsString().find("__cling_Un1Qu3")) - return true; + continue; const CompilationOptions& CO(getTransaction()->getCompilationOpts()); if (CO.ValuePrinting == CompilationOptions::VPDisabled) return true; // Nothing to do.