Compare the reverse so that the newer changes appear with + in the diff.

This commit is contained in:
Vassil Vassilev 2013-10-09 15:27:12 +02:00 committed by sftnight
parent 98c6a9d5bc
commit 308de089be

View File

@ -320,10 +320,9 @@ namespace cling {
}
void Interpreter::compareInterpreterState(const std::string& name) const {
ClangInternalState* state
= new ClangInternalState(getCI()->getASTContext(), name);
// This may induce deserialization
PushTransactionRAII RAII(this);
ClangInternalState state(getCI()->getASTContext(), *getModule(), name);
for (unsigned i = 0, e = m_StoredStates.size(); i != e; ++i) {
if (m_StoredStates[i]->getName() == name) {
state->compare(*m_StoredStates[i]);