Some URI schemes require a hint path to be provided, and workspace root
path seems to be a good fit.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 19459 Build 19459: arc lint + arc unit
Event Timeline
clangd/ClangdServer.cpp | ||
---|---|---|
119 | why validate it? | |
clangd/FindSymbols.h | ||
30 | Change to HintPath? There's no reason to couple this code to the fact that it's the workspace root in clangdserver. | |
30 | you sometimes pass "" here, so we should document the semantics of that | |
unittests/clangd/TestFS.cpp | ||
70 | is a path relative to testRoot() | |
93 | why this change? |
- Address review comments
clangd/ClangdServer.cpp | ||
---|---|---|
119 | This is the current behavior, except llvm::sys::fs::is_directory only works for real file system. | |
unittests/clangd/TestFS.cpp | ||
93 | 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 | can we switch back to that path being represented by unittest:/x.h rather than unittest:x.h? |
why validate it?