diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2018-11-23 15:21:19 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2018-11-23 15:21:19 +0000 |
| commit | 19d75608f8c646df4cb89b83ef7004c0e4a437aa (patch) | |
| tree | 57cc6433b8ef0e612d8de1aa87097ff397ad8735 /clang-tools-extra/clangd/ClangdServer.cpp | |
| parent | 0fc5dcd1c8826fcbf68348cb0081518eb5411480 (diff) | |
| download | bcm5719-llvm-19d75608f8c646df4cb89b83ef7004c0e4a437aa.tar.gz bcm5719-llvm-19d75608f8c646df4cb89b83ef7004c0e4a437aa.zip | |
[clangd] Add support for hierarchical documentSymbol
Reviewers: ioeric, sammccall, simark
Reviewed By: sammccall
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D52311
llvm-svn: 347498
Diffstat (limited to 'clang-tools-extra/clangd/ClangdServer.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/ClangdServer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp index 24363f1eeac..8a86a5b7f8f 100644 --- a/clang-tools-extra/clangd/ClangdServer.cpp +++ b/clang-tools-extra/clangd/ClangdServer.cpp @@ -470,10 +470,10 @@ void ClangdServer::workspaceSymbols( std::move(CB))); } -void ClangdServer::documentSymbols( - StringRef File, Callback<std::vector<SymbolInformation>> CB) { - auto Action = [](Callback<std::vector<SymbolInformation>> CB, - Expected<InputsAndAST> InpAST) { +void ClangdServer::documentSymbols(StringRef File, + Callback<std::vector<DocumentSymbol>> CB) { + auto Action = [](Callback<std::vector<DocumentSymbol>> CB, + llvm::Expected<InputsAndAST> InpAST) { if (!InpAST) return CB(InpAST.takeError()); CB(clangd::getDocumentSymbols(InpAST->AST)); |

