Print symbol namespace paths in context

This commit is contained in:
caheckman 2020-06-16 15:26:49 -04:00
parent a027a5cdd8
commit f7a8e264aa
11 changed files with 196 additions and 72 deletions

View file

@ -105,6 +105,16 @@ void PrintLanguage::setCommentDelimeter(const string &start,const string &stop,b
}
}
void PrintLanguage::popScope(void)
{
scopestack.pop_back();
if (scopestack.empty())
curscope = (Scope *)0;
else
curscope = scopestack.back();
}
/// This generally will recursively push an entire expression onto the RPN stack,
/// up to Varnode objects marked as \e explicit, and will decide token order
/// and parenthesis placement. As the ordering gets resolved,
@ -658,10 +668,8 @@ void PrintLanguage::clear(void)
mods = modstack.front();
modstack.clear();
}
if (!scopestack.empty()) {
curscope = scopestack.front();
scopestack.clear();
}
scopestack.clear();
curscope = (const Scope *)0;
revpol.clear();
pending = 0;