This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Rename: merge index/AST refs path-insensitively where needed
ClosedPublic

Authored by sammccall on Jan 31 2021, 5:43 AM.

Details

Summary

If you have c:\foo open, and C:\foo indexed (case difference) then these
need to be considered the same file. Otherwise we emit edits to both,
and editors do... something that isn't pretty.

Maybe more centralized normalization is called for, but it's not trivial
to do this while also being case-preserving. see
https://github.com/clangd/clangd/issues/108

Fixes https://github.com/clangd/clangd/issues/665

Diff Detail

Event Timeline

sammccall created this revision.Jan 31 2021, 5:43 AM
sammccall requested review of this revision.Jan 31 2021, 5:43 AM
sammccall updated this revision to Diff 320352.Jan 31 2021, 5:45 AM

remove debug printfs

sammccall updated this revision to Diff 320353.Jan 31 2021, 5:47 AM

revert unintended formatting changes

hokein accepted this revision.Jan 31 2021, 11:29 PM

Thanks for fixing this!

This revision is now accepted and ready to land.Jan 31 2021, 11:29 PM
This revision was landed with ongoing or failed builds.Feb 1 2021, 6:24 AM
This revision was automatically updated to reflect the committed changes.