[PATCH] D77942: [Preamble] Invalidate preamble when missing headers become present.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 11 07:59:16 PDT 2020


sammccall created this revision.
sammccall added a reviewer: kadircet.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, javed.absar.
Herald added a project: clang.

To avoid excessive extra stat()s, only check the possible locations of
headers that weren't found at all (leading to a compile error).
For headers that *were* found, we don't check for files earlier on the
search path that could override them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77942

Files:
  clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
  clang-tools-extra/clangd/unittests/TUSchedulerTests.cpp
  clang/include/clang/Frontend/PrecompiledPreamble.h
  clang/lib/Frontend/PrecompiledPreamble.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77942.256769.patch
Type: text/x-patch
Size: 12886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200411/1eb769f2/attachment-0001.bin>


More information about the cfe-commits mailing list