summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd/CodeComplete.h
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-09-06 18:52:26 +0000
committerEric Liu <ioeric@google.com>2018-09-06 18:52:26 +0000
commit6df66001ee1df2a2339f3899b5d674f6cc8fcf9f (patch)
treea0e6f2ae73d02053d93152d9759928e361dd9d60 /clang-tools-extra/clangd/CodeComplete.h
parent9e5c1631548ac7c41789dd1ada16ae83aa5f81c1 (diff)
downloadllvm-6df66001ee1df2a2339f3899b5d674f6cc8fcf9f.tar.gz
[clangd] Add "Deprecated" field to Symbol and CodeCompletion.
Summary: Also set "deprecated" field in LSP CompletionItem. Reviewers: sammccall, kadircet Reviewed By: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D51724 llvm-svn: 341576
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.h')
-rw-r--r--clang-tools-extra/clangd/CodeComplete.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.h b/clang-tools-extra/clangd/CodeComplete.h
index 3197e172bbd6..6467ad35499e 100644
--- a/clang-tools-extra/clangd/CodeComplete.h
+++ b/clang-tools-extra/clangd/CodeComplete.h
@@ -177,6 +177,9 @@ struct CodeCompletion {
};
Scores Score;
+ /// Indicates if this item is deprecated.
+ bool Deprecated = false;
+
// Serialize this to an LSP completion item. This is a lossy operation.
CompletionItem render(const CodeCompleteOptions &) const;
};