This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Don't collect locations that implicitly refer to the target decl.
Needs ReviewPublic

Authored by hokein on Aug 21 2019, 6:40 AM.

Details

Reviewers
ilya-biryukov
Summary

A followup of rL369514, the previous patch was fix the
DeclarationAndMacrosFinder (we will not get decl from implicit
node under the cursor).
This patch is to fix ReferenceFinder (we will not collect implicit references).

Event Timeline

hokein created this revision.Aug 21 2019, 6:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2019, 6:40 AM

This actually seems useful. If one starts the search at operator bool, it's nice to see its implicit calls too.
What are the cons of having this?

nridge added a subscriber: nridge.Aug 21 2019, 5:38 PM