[all-commits] [llvm/llvm-project] 67d16b: [clangd] Cache .clang-tidy files again.

Sam McCall via All-commits all-commits at lists.llvm.org
Sun Nov 29 04:29:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 67d16b6da4bef1ee174514148854e77151a62605
      https://github.com/llvm/llvm-project/commit/67d16b6da4bef1ee174514148854e77151a62605
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-11-29 (Sun, 29 Nov 2020)

  Changed paths:
    M clang-tools-extra/clangd/TidyProvider.cpp

  Log Message:
  -----------
  [clangd] Cache .clang-tidy files again.

This cache went away in 73fdd998701cce3aa6c4d8d2a73ab97351a0313b

This time, the cache is periodically validated against disk, so config
is still mostly "live".

The per-file cache reuses FileCache, but the tree-of-file-caches is
duplicated from ConfigProvider. .clangd, .clang-tidy, .clang-format, and
compile_commands.json all have this pattern, we should extract it at some point.
TODO for now though.

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




More information about the All-commits mailing list