llvm-project/clang-tools-extra/clangd/index
Haojian Wu 88cfb66c5a [clangd] Using index for GoToDefinition.
Summary:
This patch adds index support for GoToDefinition -- when we don't get the
definition from local AST, we query our index (Static&Dynamic) index to
get it.

Since we currently collect top-level symbol in the index, it doesn't support all
cases (e.g. class members), we will extend the index to include more symbols in
the future.

Reviewers: sammccall

Subscribers: klimek, ilya-biryukov, jkorous-apple, ioeric, MaskRay, cfe-commits

Differential Revision: https://reviews.llvm.org/D45717

llvm-svn: 331189
2018-04-30 15:24:17 +00:00
..
CanonicalIncludes.cpp [clangd] Minor fixes for C++ standard library header mapping. 2018-04-25 09:17:05 +00:00
CanonicalIncludes.h [clangd] Make symbol name a required parameter for CanonicalIncludes::mapHeader 2018-03-01 18:30:48 +00:00
FileIndex.cpp [clangd] Using index for GoToDefinition. 2018-04-30 15:24:17 +00:00
FileIndex.h [clangd] Using index for GoToDefinition. 2018-04-30 15:24:17 +00:00
Index.cpp [clangd] Add "str()" method to SymbolID. 2018-04-25 15:27:09 +00:00
Index.h [clangd] Add "str()" method to SymbolID. 2018-04-25 15:27:09 +00:00
MemIndex.cpp [clangd] Add an interface that finds symbol by SymbolID in SymbolIndex. 2018-03-14 09:48:05 +00:00
MemIndex.h [clangd] Add an interface that finds symbol by SymbolID in SymbolIndex. 2018-03-14 09:48:05 +00:00
Merge.cpp [clangd] Add an interface that finds symbol by SymbolID in SymbolIndex. 2018-03-14 09:48:05 +00:00
Merge.h [clangd] Merge results from static/dynamic index. 2018-01-15 12:33:00 +00:00
SymbolCollector.cpp [clangd] Also use UTF-16 in index position. 2018-04-30 11:40:02 +00:00
SymbolCollector.h [clangd] Adapt index interfaces to D45014, and fix the old bugs. 2018-04-09 14:28:52 +00:00
SymbolYAML.cpp [clangd] Add line and column number to the index symbol. 2018-04-13 08:30:39 +00:00
SymbolYAML.h [clangd] Fix use-after-free in SymbolYAML: strings are owned by yaml::Input! 2018-02-19 09:31:26 +00:00