Skip to content
Snippets Groups Projects
Commit d5b7a0b5 authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

Filter out some global "uninteresting" functions.

git-svn-id: http://root.cern.ch/svn/root/trunk@46775 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9466883a
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@
#include "cling/Interpreter/StoredValueRef.h"
#include "cling/Interpreter/Transaction.h"
#include "cling/MetaProcessor/MetaProcessor.h"
#include "cling/Utils/AST.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/raw_ostream.h"
......@@ -189,6 +190,10 @@ void TCintWithCling__UpdateListsOnCommitted(const cling::Transaction &T) {
listOfSmth = gROOT->GetListOfGlobalFunctions();
if (!isa<TranslationUnitDecl>(FD->getDeclContext()))
continue;
if(FD->isOverloadedOperator()
|| cling::utils::Analyze::IsWrapper(FD))
continue;
if (!listOfSmth->FindObject(FD->getNameAsString().c_str())) {
listOfSmth->Add(new TFunction(new TClingMethodInfo(interp, FD)));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment