Some URI schemes require a hint path to be provided, and workspace root
path seems to be a good fit.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/ClangdServer.cpp | ||
---|---|---|
119 ↗ | (On Diff #151749) | why validate it? |
clangd/FindSymbols.h | ||
30 ↗ | (On Diff #151749) | Change to HintPath? There's no reason to couple this code to the fact that it's the workspace root in clangdserver. |
30 ↗ | (On Diff #151749) | you sometimes pass "" here, so we should document the semantics of that |
unittests/clangd/TestFS.cpp | ||
70 ↗ | (On Diff #151749) | is a path relative to testRoot() |
93 ↗ | (On Diff #151749) | why this change? |
- Address review comments
clangd/ClangdServer.cpp | ||
---|---|---|
119 ↗ | (On Diff #151749) | This is the current behavior, except llvm::sys::fs::is_directory only works for real file system. |
unittests/clangd/TestFS.cpp | ||
93 ↗ | (On Diff #151749) | The consume_front above would not consume the second slash in /clangd-test/x.h which results in "/x.h" in the body, but that doesn't work with testPath() which requires a relative path. That's why I added a requirement that the body should be relative path. |
unittests/clangd/TestFS.cpp | ||
---|---|---|
93 ↗ | (On Diff #151749) | can we switch back to that path being represented by unittest:/x.h rather than unittest:x.h? |