This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Expose whether no-compile completion was used.
ClosedPublic

Authored by sammccall on May 6 2019, 3:41 AM.

Diff Detail

Event Timeline

sammccall created this revision.May 6 2019, 3:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2019, 3:41 AM

We already have CodeCompletion::Origin which is (at least should be)set to Identifier in those cases. Is there a reason for not using it?

We already have CodeCompletion::Origin which is (at least should be)set to Identifier in those cases. Is there a reason for not using it?

I'd forgotten about that. A couple I can think of:

  • it's for each result, they want a result-set level flag (including when there are no results, possibly *because* we didn't parse)
  • identifier completion doesn't inherently mean we didn't parse, that's just the case today. I think we're going to want to offer identifiers inside comments, e.g. https://github.com/clangd/clangd/issues/44
kadircet accepted this revision.May 6 2019, 4:57 AM

Thanks for the info. LGTM

This revision is now accepted and ready to land.May 6 2019, 4:57 AM
This revision was automatically updated to reflect the committed changes.