Compare the reverse so that the newer changes appear with + in the diff.
This commit is contained in:
parent
98c6a9d5bc
commit
308de089be
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user