[clangd] Allow disble down traversals from root.
authorEric Liu <ioeric@google.com>
Tue, 16 Oct 2018 10:41:17 +0000 (10:41 +0000)
committerEric Liu <ioeric@google.com>
Tue, 16 Oct 2018 10:41:17 +0000 (10:41 +0000)
commit0c29722c609e9aabf585d798f5c9ccce369c09db
treeba975bafab0f9a23d059f3bc932dd091b93292d4
parente60eae425647e5f0dfe1ea6a3650ac229c2eeb8c
[clangd] Allow disble down traversals from root.

Summary:
This is useful for symbo scope proximity, where down traversals from
the global scope if not desired.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

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

llvm-svn: 344604
clang-tools-extra/clangd/FileDistance.cpp
clang-tools-extra/clangd/FileDistance.h
clang-tools-extra/unittests/clangd/FileDistanceTests.cpp