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
This commit is contained in:
Vassil Vassilev 2012-10-17 07:38:08 +00:00
parent 1c2df25cdd
commit aaab1dca48
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace cling {
I != E; ++I)
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(*I)) {
if (FD->getNameAsString().find("__cling_Un1Qu3"))
return;
continue;
int foundAtPos = -1;
if (Expr* lastExpr = utils::Analyze::GetLastExpr(FD, &foundAtPos)) {

View File

@ -56,7 +56,7 @@ namespace cling {
for (DeclGroupRef::iterator I = DGR.begin(), E = DGR.end(); I != E; ++I)
if (FunctionDecl* FD = dyn_cast<FunctionDecl>(*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.