summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/DraftStore.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-02-22 14:00:39 +0000
committerSimon Marchi <simon.marchi@ericsson.com>2018-02-22 14:00:39 +0000
commit5178f924c486c79854c06fd617bdac74c8c7bdfe (patch)
treebc98bb1490c57ce244d366fe7491002cefed5403 /clang-tools-extra/clangd/DraftStore.h
parented797a30497edd9010d45125f0fc949b7ded651e (diff)
downloadbcm5719-llvm-5178f924c486c79854c06fd617bdac74c8c7bdfe.tar.gz
bcm5719-llvm-5178f924c486c79854c06fd617bdac74c8c7bdfe.zip
[clangd] DidChangeConfiguration Notification
Summary: Implementation of DidChangeConfiguration notification handling in clangd. This currently only supports changing one setting: the path of the compilation database to be used for the current project. In other words, it is no longer necessary to restart clangd with a different command line argument in order to change the compilation database. Reviewers: malaperle, krasimir, bkramer, ilya-biryukov Subscribers: jkorous-apple, ioeric, simark, klimek, ilya-biryukov, arphaman, rwols, cfe-commits Differential Revision: https://reviews.llvm.org/D39571 Signed-off-by: Simon Marchi <simon.marchi@ericsson.com> Signed-off-by: William Enright <william.enright@polymtl.ca> llvm-svn: 325784
Diffstat (limited to 'clang-tools-extra/clangd/DraftStore.h')
-rw-r--r--clang-tools-extra/clangd/DraftStore.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/DraftStore.h b/clang-tools-extra/clangd/DraftStore.h
index 2dd7184437a..4757768a377 100644
--- a/clang-tools-extra/clangd/DraftStore.h
+++ b/clang-tools-extra/clangd/DraftStore.h
@@ -40,6 +40,12 @@ public:
/// \return version and contents of the stored document.
/// For untracked files, a (0, None) pair is returned.
VersionedDraft getDraft(PathRef File) const;
+
+ /// \return List of names of active drafts in this store. Drafts that were
+ /// removed (which still have an entry in the Drafts map) are not returned by
+ /// this function.
+ std::vector<Path> getActiveFiles() const;
+
/// \return version of the tracked document.
/// For untracked files, 0 is returned.
DocVersion getVersion(PathRef File) const;
OpenPOWER on IntegriCloud