HomePhabricator

[clangd] Extract common file-caching logic from ConfigProvider.

Authored by sammccall on Sep 23 2020, 10:58 AM.

Description

[clangd] Extract common file-caching logic from ConfigProvider.

The plan is to use this to use this for .clang-format, .clang-tidy, and
compile_commands.json. (Currently the former two are reparsed every
time, and the latter is cached forever and changes are never seen).

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