[PATCH] D77847: [clangd] Rebuild dependent files when a header is saved.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 9 18:31:16 PDT 2020
sammccall created this revision.
sammccall added a reviewer: kadircet.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, MaskRay, ilya-biryukov.
Herald added a project: clang.
Caveats:
- only works when the header is changed in the editor and the editor provides the notification
- we revalidate preambles for all open files (stat all their headers) rather than taking advantage of the fact that we know which file changed. This is much simpler!
Fixes https://github.com/clangd/clangd/issues/107
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77847
Files:
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdLSPServer.h
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Protocol.h
clang-tools-extra/clangd/test/initialize-params.test
clang-tools-extra/clangd/unittests/ClangdLSPServerTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77847.256466.patch
Type: text/x-patch
Size: 7857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200410/cdc40209/attachment-0001.bin>
More information about the cfe-commits
mailing list