We can't resolve this (if it's a symlink) without further refactoring, but the
current behaviour is just incorrect.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, thanks!
clang-tools-extra/clangd/CompileCommands.cpp | ||
---|---|---|
141 | I believe it would be clearer if you put it below, into else if (ClangPath) part. i.e. if (Absolute ...) .. // If we couldn't find program and driver is just a filename, use clang dir // FIXME: Note that Driver can still be relative to workdir even if it doesn't have any path separators. // We should pass WD into here and try to make Driver absolute. else if(ClangPath && !hasPathSeparators(Driver)) ... |
clang-tools-extra/clangd/CompileCommands.cpp | ||
---|---|---|
141 | This would rely on the undocumented behaviour of findProgramByName with workdir-relative paths, which I think would be nice to avoid (for clarity to the reader if nothing else). |
clang-tools-extra/clangd/CompileCommands.cpp | ||
---|---|---|
141 | makes sense, i think we should land this soon-ish to stop the bleeding. |
I believe it would be clearer if you put it below, into else if (ClangPath) part.
i.e.