summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/Protocol.h
diff options
context:
space:
mode:
authorRussell Gallop <russell.gallop@gmail.com>2019-07-12 13:35:58 +0000
committerRussell Gallop <russell.gallop@gmail.com>2019-07-12 13:35:58 +0000
commitde54e2c4df98f725e9ef9f4885cf2fe136ef2956 (patch)
tree1dcdbdf3dd00af04399d3d224718b1f696d10ec9 /clang-tools-extra/clangd/Protocol.h
parente6e09561698a16b30d610a0690a43cd975f9bb2a (diff)
downloadbcm5719-llvm-de54e2c4df98f725e9ef9f4885cf2fe136ef2956.tar.gz
bcm5719-llvm-de54e2c4df98f725e9ef9f4885cf2fe136ef2956.zip
Revert "[clangd] Implement typeHierarchy/resolve for subtypes"
Causing test failure on Windows bot This reverts commit 5b9484e559d44bd923fc290e335891b1dd2e17c4. llvm-svn: 365899
Diffstat (limited to 'clang-tools-extra/clangd/Protocol.h')
-rw-r--r--clang-tools-extra/clangd/Protocol.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h
index a2c9438ea9d..7a1a8c77d25 100644
--- a/clang-tools-extra/clangd/Protocol.h
+++ b/clang-tools-extra/clangd/Protocol.h
@@ -1127,7 +1127,7 @@ struct TypeHierarchyItem {
SymbolKind kind;
/// `true` if the hierarchy item is deprecated. Otherwise, `false`.
- bool deprecated = false;
+ bool deprecated;
/// The URI of the text document where this type hierarchy item belongs to.
URIForFile uri;
@@ -1153,26 +1153,13 @@ struct TypeHierarchyItem {
/// descendants. If not defined, the children have not been resolved.
llvm::Optional<std::vector<TypeHierarchyItem>> children;
- /// An optional 'data' filed, which can be used to identify a type hierarchy
- /// item in a resolve request.
- llvm::Optional<std::string> data;
+ /// The protocol has a slot here for an optional 'data' filed, which can
+ /// be used to identify a type hierarchy item in a resolve request. We don't
+ /// need this (the item itself is sufficient to identify what to resolve)
+ /// so don't declare it.
};
llvm::json::Value toJSON(const TypeHierarchyItem &);
llvm::raw_ostream &operator<<(llvm::raw_ostream &, const TypeHierarchyItem &);
-bool fromJSON(const llvm::json::Value &, TypeHierarchyItem &);
-
-/// Parameters for the `typeHierarchy/resolve` request.
-struct ResolveTypeHierarchyItemParams {
- /// The item to resolve.
- TypeHierarchyItem item;
-
- /// The hierarchy levels to resolve. `0` indicates no level.
- int resolve;
-
- /// The direction of the hierarchy levels to resolve.
- TypeHierarchyDirection direction;
-};
-bool fromJSON(const llvm::json::Value &, ResolveTypeHierarchyItemParams &);
struct ReferenceParams : public TextDocumentPositionParams {
// For now, no options like context.includeDeclaration are supported.
OpenPOWER on IntegriCloud