Iterate only on the top-level decls.

This commit is contained in:
Vassil Vassilev 2014-08-05 21:48:19 +02:00 committed by sftnight
parent 800be68dff
commit 369b0ffb5c

View File

@ -157,6 +157,10 @@ namespace cling {
for (Transaction::const_iterator I = T.decls_begin(), E = T.decls_end();
I != E; ++I) {
Transaction::DelayCallInfo DCI = *I;
if (DCI.m_Call != Transaction::kCCIHandleTopLevelDecl)
continue;
std::vector<clang::Decl*> decls;
for (DeclGroupRef::iterator J = DCI.m_DGR.begin(),
JE = DCI.m_DGR.end(); J != JE; ++J) {