[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-17 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE344678: [clangd] Collect refs from headers. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D53322?vs=169967&id=169968#toc Repository: rCTE Clang Tools Extra

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 169967. hokein added a comment. minor cleanup. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53322 Files: clangd/index/IndexAction.cpp clangd/index/IndexAction.h clangd/index/SymbolCollector.cpp clangd/index/SymbolCollector.h unit

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. In https://reviews.llvm.org/D53322#1266536, @sammccall wrote: > (please do check there are no duplicates in the output) We do deduplication when building the RefSlab. And double-checked with the output, no duplications there. Repository: rCTE Clang Tools Extra http

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 169963. hokein marked 5 inline comments as done. hokein added a comment. Address review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53322 Files: clangd/index/IndexAction.cpp clangd/index/IndexAction.h clangd/index/SymbolCo

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-16 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. (please do check there are no duplicates in the output) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53322 ___ cfe-commi

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-16 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This looks reasonable. +80% to index size is a shame, but not disastrous, and we have ways to shave it. Can you check: - how much we're increasing the in-memory size (Dex) - that we're not outputting duplicate refs when preambles overlap between TUs ===

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. For references, the binary-format index file (for whole llvm project) size: | Before | WithRef | | 50MB | 91MB| Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53322 ___ cfe-commits mailing list cfe-com

[PATCH] D53322: [clangd] Collect refs from headers.

2018-10-16 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. Add a flag to SymbolCollector to collect refs fdrom headers. Note that we collect refs from headers in static index, and we don't do it for dyn