diff options
| author | Eric Liu <ioeric@google.com> | 2018-09-18 08:52:14 +0000 |
|---|---|---|
| committer | Eric Liu <ioeric@google.com> | 2018-09-18 08:52:14 +0000 |
| commit | f736766659e85030a72a08cfc4aab743bf3a5599 (patch) | |
| tree | 5d94f6f24e58fedc6ab818e0fa27fe5233be5887 /clang-tools-extra/clangd/FindSymbols.cpp | |
| parent | 4d22172b3a24a1991d6356762ec71d6e3097a49c (diff) | |
| download | bcm5719-llvm-f736766659e85030a72a08cfc4aab743bf3a5599.tar.gz bcm5719-llvm-f736766659e85030a72a08cfc4aab743bf3a5599.zip | |
[clangd] Adapt API change after 342451.
llvm-svn: 342452
Diffstat (limited to 'clang-tools-extra/clangd/FindSymbols.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/FindSymbols.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/FindSymbols.cpp b/clang-tools-extra/clangd/FindSymbols.cpp index 054e63d9358..0b000121e15 100644 --- a/clang-tools-extra/clangd/FindSymbols.cpp +++ b/clang-tools-extra/clangd/FindSymbols.cpp @@ -270,8 +270,9 @@ getDocumentSymbols(ParsedAST &AST) { IndexOpts.SystemSymbolFilter = index::IndexingOptions::SystemSymbolFilterKind::DeclarationsOnly; IndexOpts.IndexFunctionLocals = false; - indexTopLevelDecls(AST.getASTContext(), AST.getLocalTopLevelDecls(), - DocumentSymbolsCons, IndexOpts); + indexTopLevelDecls(AST.getASTContext(), AST.getPreprocessor(), + AST.getLocalTopLevelDecls(), DocumentSymbolsCons, + IndexOpts); return DocumentSymbolsCons.takeSymbols(); } |

