Skip to content

Commit c5adbac

Browse files
committed
[clangd] Switch Hover.All to structured tests
Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70911
1 parent 24439a7 commit c5adbac

File tree

2 files changed

+488
-430
lines changed

2 files changed

+488
-430
lines changed

clang-tools-extra/clangd/Hover.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "FormattedString.h"
1313
#include "ParsedAST.h"
1414
#include "Protocol.h"
15+
#include "clang/Index/IndexSymbol.h"
1516

1617
namespace clang {
1718
namespace clangd {
@@ -53,7 +54,7 @@ struct HoverInfo {
5354
/// Name of the symbol, does not contain any "::".
5455
std::string Name;
5556
llvm::Optional<Range> SymRange;
56-
index::SymbolKind Kind;
57+
index::SymbolKind Kind = index::SymbolKind::Unknown;
5758
std::string Documentation;
5859
/// Source code containing the definition of the symbol.
5960
std::string Definition;

0 commit comments

Comments
 (0)