diff options
| author | Eric Liu <ioeric@google.com> | 2018-09-18 13:35:16 +0000 |
|---|---|---|
| committer | Eric Liu <ioeric@google.com> | 2018-09-18 13:35:16 +0000 |
| commit | 764f461f9c0a4434112cc68e6939169df1f69a0c (patch) | |
| tree | 42fc158be9e747f6fbb223fa0b00d0912007d299 /clang-tools-extra/clangd/ClangdServer.cpp | |
| parent | 6a39d32e663ae1c19b4f01b191433f5c0f0cfc45 (diff) | |
| download | bcm5719-llvm-764f461f9c0a4434112cc68e6939169df1f69a0c.tar.gz bcm5719-llvm-764f461f9c0a4434112cc68e6939169df1f69a0c.zip | |
[clangd] Get rid of Decls parameter in indexMainDecls. NFC
It's already available in ParsedAST.
llvm-svn: 342473
Diffstat (limited to 'clang-tools-extra/clangd/ClangdServer.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/ClangdServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp index 6f2d13e0bd0..153dce29484 100644 --- a/clang-tools-extra/clangd/ClangdServer.cpp +++ b/clang-tools-extra/clangd/ClangdServer.cpp @@ -83,7 +83,7 @@ std::unique_ptr<ParsingCallbacks> makeUpdateCallbacks(FileIndex *FIndex) { } void onMainAST(PathRef Path, ParsedAST &AST) override { - FIndex->updateMain(Path, AST, AST.getLocalTopLevelDecls()); + FIndex->updateMain(Path, AST); } }; return llvm::make_unique<CB>(FIndex); |

