[clangd] Unify path canonicalizations in the codebase
authorKadir Cetinkaya <kadircet@google.com>
Wed, 19 Dec 2018 10:46:21 +0000 (10:46 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 19 Dec 2018 10:46:21 +0000 (10:46 +0000)
commitdd67793c0c549638cd93cad1142d324b979ba682
tree031304cd0d3923502a947fbfe22aedd74ccca9d7
parent7120fb9b0ba5474693a56d0f6e632058c9764f84
[clangd] Unify path canonicalizations in the codebase

Summary:
There were a few different places where we canonicalized paths, each
one had its own flavor. This patch tries to unify them all under one place.

Reviewers: ilya-biryukov

Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D55818

llvm-svn: 349618
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/index/Background.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp