[clangd] Drop namespace references in the index.
authorHaojian Wu <hokein@google.com>
Wed, 7 Nov 2018 14:59:24 +0000 (14:59 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 7 Nov 2018 14:59:24 +0000 (14:59 +0000)
commitf761a2c62029cc7aeb173aa0b9dab2ad9952a2ec
tree57b42994a3bd68c54ef8b8efe091995e9d05261e
parent8f07efc7c56b9ec30029c79149e5731cacfb2388
[clangd] Drop namespace references in the index.

Summary:
Namespace references is less useful compared with other symbols, and
they contribute large part of the index. This patch drops them.
The number of refs is reduced from 5.4 million to 4.7 million.

|           |  Before | After |
|file size  |  78 MB  |  71MB |
|memory     |  330MB  |  300MB|

Reviewers: sammccall

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

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

llvm-svn: 346319
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/unittests/clangd/SymbolCollectorTests.cpp