Skip to content

Commit 92ee19a

Browse files
committed
TraverseDecl might deserialize
1 parent 5b46e86 commit 92ee19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/dictgen/src/Scanner.cxx

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

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

@@ -1054,6 +1052,8 @@ void RScanner::Scan(const clang::ASTContext &C)
10541052
std::cout<<"File name detected"<<std::endl;
10551053
}
10561054

1055+
cling::Interpreter::PushTransactionRAII RAII(const_cast<cling::Interpreter*>(&fInterpreter));
1056+
10571057
if (fScanType == EScanType::kTwoPasses)
10581058
TraverseDecl(C.getTranslationUnitDecl());
10591059

0 commit comments

Comments
 (0)