[clangd] Record the file being processed in a TUScheduler thread in context.
authorEric Liu <ioeric@google.com>
Thu, 9 Aug 2018 09:05:45 +0000 (09:05 +0000)
committerEric Liu <ioeric@google.com>
Thu, 9 Aug 2018 09:05:45 +0000 (09:05 +0000)
commitf40819ea2d4c6ee471846126e9aa60477c5bcf6d
treec50f3464914bf1277f73daed84625688323670f7
parent5df524f81d5ddf72162b621b29e28f7235b9dc40
[clangd] Record the file being processed in a TUScheduler thread in context.

Summary:
This allows implementations like different symbol indexes to know what
the current active file is. For example, some customized index implementation
might decide to only return results for some files.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: javed.absar, MaskRay, jkorous, arphaman, cfe-commits

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

llvm-svn: 339320
clang-tools-extra/clangd/TUScheduler.cpp
clang-tools-extra/clangd/TUScheduler.h
clang-tools-extra/unittests/clangd/TUSchedulerTests.cpp