hanchenye-llvm-project/clang-tools-extra/clangd/index
Sam McCall 8b2faeed02 [clangd] Change index scope convention from "outer::inner" to "outer::inner::"
Global scope is "" (was "")
Top-level namespace scope is "ns::" (was "ns")
Nested namespace scope is "ns::ns::" (was "ns::ns")

This composes more naturally:
- qname = scope + name
- full scope = resolved scope + unresolved scope (D42073 was the trigger)
It removes a wart from the old way: "foo::" has one more separator than "".

Another alternative that has these properties is "::ns", but that lacks
the property that both the scope and the name are substrings of the
qname as produced by clang.

This is re-landing r322996 which didn't build.

llvm-svn: 323000
2018-01-19 22:18:21 +00:00
..
FileIndex.cpp [clangd] Code completion uses Sema for NS-level things in the current file. 2018-01-12 18:30:08 +00:00
FileIndex.h [clangd] Simplify code. No functionality change intended. 2017-12-28 14:47:01 +00:00
Index.cpp [clangd] Improve const-correctness of Symbol->Detail. NFC 2018-01-15 20:09:09 +00:00
Index.h [clangd] Change index scope convention from "outer::inner" to "outer::inner::" 2018-01-19 22:18:21 +00:00
MemIndex.cpp [clangd] Use fuzzy match to select top N index results. 2018-01-18 08:35:04 +00:00
MemIndex.h [clangd] Add static index for the global code completion. 2018-01-10 14:44:34 +00:00
Merge.cpp [clangd] Merge results from static/dynamic index. 2018-01-15 12:33:00 +00:00
Merge.h [clangd] Merge results from static/dynamic index. 2018-01-15 12:33:00 +00:00
SymbolCollector.cpp [clangd] Change index scope convention from "outer::inner" to "outer::inner::" 2018-01-19 22:18:21 +00:00
SymbolCollector.h [clangd] Add more filters for collected symbols. 2018-01-10 14:57:58 +00:00
SymbolYAML.cpp [clangd] Improve const-correctness of Symbol->Detail. NFC 2018-01-15 20:09:09 +00:00
SymbolYAML.h [clangd] Use ToolExecutor to write the global-symbol-builder tool. 2018-01-09 15:21:45 +00:00