[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346319: [clangd] Drop namespace references in the index. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D54202 Files: clan

[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 172950. hokein marked an inline comment as done. hokein added a comment. Fix another typo. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D54202 Files: clangd/index/SymbolCollector.cpp clangd/index/SymbolCollector.h unittests/clangd/Sym

[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/SymbolCollector.cpp:359 return true; - if (CollectRef && + if (CollectRef && !isa(ND) && (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) kadircet wrote: > Why not handle

[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clangd/index/SymbolCollector.cpp:359 return true; - if (CollectRef && + if (CollectRef && !isa(ND) && (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) Why not handle in `shouldColle

[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 172926. hokein added a comment. Fix a typo. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D54202 Files: clangd/index/SymbolCollector.cpp clangd/index/SymbolCollector.h unittests/clangd/SymbolCollectorTests.cpp Index: unittests/clangd

[PATCH] D54202: [clangd] Drop namespace references in the index.

2018-11-07 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. Namespace references is less useful compared with other symbols, and they contribute large part of the index. This patch drops them. The number