sammccall added inline comments.

================
Comment at: unittests/clangd/HeadersTests.cpp:29
+  // absolute path.
+  std::string addToSubdir(PathRef File, llvm::StringRef Code = "") {
+    assert(llvm::sys::path::is_relative(File) && "FileName should be 
relative");
----------------
sammccall wrote:
> This test would be clearer to me if you removed this helper and just did
> 
> ```FS.Files["sub/bar.h"] = ...```
> 
> in the test.
> 
> Can we change `buildTestFS` in `TestFS.cpp` to call `getVirtualTestFilePath` 
> on relative paths to allow this?
> 
> (I can do this as a followup if you like, but it seems like a trivial change)
I thought better of that change to TestFS, but did some renames in r325326.

So this would be `FS.Files[testPath("sub/bar.h")) = ...` which still seems more 
transparent - up to you.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D42640



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to