summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/ClangdLSPServer.h
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-10-25 02:04:30 +0000
committerSam McCall <sam.mccall@gmail.com>2018-10-25 02:04:30 +0000
commitfd7d341b43a8f591fa40f0a5510a4dd39d13963d (patch)
tree1df6bc50ed25dfc2dbc2f7682353b0be7fe489c0 /clang-tools-extra/clangd/ClangdLSPServer.h
parent325c9c5e84ae6f0b0856bfb00d6278a2fdbfd969 (diff)
downloadbcm5719-llvm-fd7d341b43a8f591fa40f0a5510a4dd39d13963d.tar.gz
bcm5719-llvm-fd7d341b43a8f591fa40f0a5510a4dd39d13963d.zip
[clangd] Don't invalidate LSP-set compile commands when closing a file.
Summary: It doesn't make much sense: setting them is not coupled to opening the file, it's an asynchronous notification. I don't think this is a breaking change - this behavior is hard to observe! Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D53642 llvm-svn: 345231
Diffstat (limited to 'clang-tools-extra/clangd/ClangdLSPServer.h')
-rw-r--r--clang-tools-extra/clangd/ClangdLSPServer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h
index 70d13fc0d28..768db0f1931 100644
--- a/clang-tools-extra/clangd/ClangdLSPServer.h
+++ b/clang-tools-extra/clangd/ClangdLSPServer.h
@@ -113,8 +113,6 @@ private:
static CompilationDB
makeDirectoryBased(llvm::Optional<Path> CompileCommandsDir);
- void invalidate(PathRef File);
-
/// Sets the compilation command for a particular file.
/// Only valid for in-memory CDB, no-op and error log on DirectoryBasedCDB.
///
OpenPOWER on IntegriCloud