This is an archive of the discontinued LLVM Phabricator instance.

[Tooling] Restore current directory after processing each file.
ClosedPublic

Authored by alexfh on Nov 6 2014, 6:50 PM.

Details

Summary

If we actually change directory before processing a file, we need to
restore it afterwards. This was broken in r216620.

Added a comment for the changes in r216620.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 15907.Nov 6 2014, 6:50 PM
alexfh retitled this revision from to [Tooling] Restore current directory after processing each file..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: klimek.
alexfh added a subscriber: Unknown Object (MLST).
klimek accepted this revision.Nov 10 2014, 5:43 AM
klimek edited edge metadata.

lg

lib/Tooling/Tooling.cpp
312–315

I'd rephrase this to say what state we want to be in rather than what the current state is.

This revision is now accepted and ready to land.Nov 10 2014, 5:43 AM
alexfh closed this revision.Nov 10 2014, 7:33 AM
alexfh added inline comments.Nov 10 2014, 8:18 AM
lib/Tooling/Tooling.cpp
312–315

Done. See r221600.