Skip to content

Commit dc7d796

Browse files
vgvassilevhahnjo
authored andcommitted
TraverseDecl might deserialize
1 parent 0cf5956 commit dc7d796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: core/dictgen/src/Scanner.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ inline static bool IsElementPresent(const std::vector<const T*> &v, T *el){
5858
using namespace ROOT;
5959
using namespace clang;
6060

61-
extern cling::Interpreter *gInterp;
62-
6361
const char* RScanner::fgClangDeclKey = "ClangDecl"; // property key used for connection with Clang objects
6462
const char* RScanner::fgClangFuncKey = "ClangFunc"; // property key for demangled names
6563

@@ -1059,6 +1057,8 @@ void RScanner::Scan(const clang::ASTContext &C)
10591057
std::cout<<"File name detected"<<std::endl;
10601058
}
10611059

1060+
cling::Interpreter::PushTransactionRAII RAII(const_cast<cling::Interpreter *>(&fInterpreter));
1061+
10621062
if (fScanType == EScanType::kTwoPasses)
10631063
TraverseDecl(C.getTranslationUnitDecl());
10641064

0 commit comments

Comments
 (0)