This is an archive of the discontinued LLVM Phabricator instance.

Fix symlink resolution in GetCanonicalPath
AbandonedPublic

Authored by DaanDeMeyer on Jan 20 2020, 11:43 PM.

Details

Summary

https://github.com/llvm/llvm-project/commit/dd67793c0c549638cd93cad1142d324b979ba682 removed file path symlink resolution in GetCanonicalPath. This revision adds the file path symlink resolution back to GetCanonicalPath. This is needed so that clangd always navigates us to the original file instead of a symlink.

See https://github.com/clangd/clangd/issues/197 for an extended discussion.

(It would be great if this can still make it in the 10.0.0 release)

Diff Detail

Event Timeline

DaanDeMeyer created this revision.Jan 20 2020, 11:43 PM
DaanDeMeyer edited the summary of this revision. (Show Details)Jan 21 2020, 12:14 AM
DaanDeMeyer edited the summary of this revision. (Show Details)Jan 21 2020, 12:56 AM
DaanDeMeyer abandoned this revision.Apr 26 2020, 2:38 AM

Abandoning this since clangd shouldn't be forced to deal with the outrageous build system that I'm forced to use. I'm currently just building clangd from source with these changes which works fine.