This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Drop documentation in static index if symbols are not indexed for completion.
ClosedPublic

Authored by hokein on Jan 10 2019, 4:20 AM.

Details

Summary

This is a further optimization of r350803, we drop docs in static index for
symbols not being indexed for completion, while keeping the docs in dynamic
index (we rely on dynamic index to get docs for class members).

Diff Detail

Event Timeline

hokein created this revision.Jan 10 2019, 4:20 AM
ilya-biryukov accepted this revision.Jan 22 2019, 7:35 AM

Just realized I missed this review, sorry about that.
LGTM with a nit.

clangd/index/FileIndex.cpp
51

NIT: maybe mention the rationale here in a comment? Something like // comments for main file can always be obtained from sema, do not store them in the index.

This revision is now accepted and ready to land.Jan 22 2019, 7:35 AM
hokein updated this revision to Diff 188176.Feb 25 2019, 7:39 AM
hokein marked an inline comment as done.

Rebase and address comment.

Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2019, 7:39 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
This revision was automatically updated to reflect the committed changes.