[PATCH] D84811: [clangd] Add an option to exclude symbols outside of project root from index

Kirill Bobyrev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 16:38:30 PDT 2020


kbobyrev created this revision.
kbobyrev added a reviewer: hokein.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous.
Herald added a project: clang.
kbobyrev requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.

This is useful for the remote index: system libraries and external dependencies
would still have a different location on local and remote machine, so they
should be simply excluded.

Unfortunately, it is not possible to filter symbols during indexing because
symbol information is merged throughout the whole process, so the only option
is to do post-processing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84811

Files:
  clang-tools-extra/clangd/indexer/IndexerMain.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84811.281414.patch
Type: text/x-patch
Size: 4813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200728/0c9ed416/attachment-0001.bin>


More information about the cfe-commits mailing list