[clangd] cleanup: unify the implemenation of checking a location is inside main file.
authorHaojian Wu <hokein@google.com>
Fri, 19 Jul 2019 08:33:39 +0000 (08:33 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 19 Jul 2019 08:33:39 +0000 (08:33 +0000)
commit6ae86ea2752126d386206cd92ef6a905f6f58598
tree191106b54c7ba063a74f2bb2fbbc00bd34299a3b
parentf2eb403144959e9da93ed28ee7b9736c993b5a3c
[clangd] cleanup: unify the implemenation of checking a location is inside main file.

Summary: We have variant implementations in the codebase, this patch unifies them.

Reviewers: ilya-biryukov, kadircet

Subscribers: MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

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

llvm-svn: 366541
12 files changed:
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/Headers.cpp
clang-tools-extra/clangd/IncludeFixer.cpp
clang-tools-extra/clangd/Quality.cpp
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp