[PATCH] D51407: [Tooling] Do not restore working dir in ClangTool

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 29 08:11:34 PDT 2018


ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.

lg



================
Comment at: lib/Tooling/Tooling.cpp:202
 
-std::string getAbsolutePath(StringRef File) {
+static llvm::Expected<std::string> getAbsolutePath(vfs::FileSystem &FS,
+                                                   StringRef File) {
----------------
I think this is a better alternative to the original `getAbsolutePath` as a public interface. Maybe also expose it? 


Repository:
  rC Clang

https://reviews.llvm.org/D51407





More information about the cfe-commits mailing list