[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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@366541 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed