This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Update the CompletionItemKind.
ClosedPublic

Authored by hokein on Feb 14 2020, 5:57 AM.

Details

Summary

Fix some FIXMEs.

Diff Detail

Event Timeline

hokein created this revision.Feb 14 2020, 5:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2020, 5:57 AM
kadircet accepted this revision.Feb 14 2020, 6:06 AM
kadircet added inline comments.
clang-tools-extra/clangd/CodeComplete.cpp
107

I believe function still captures the intend better here, as you can only see the completion if you are literally completing for Foo.operator X() (btw, I am not even sure if we show completions for those, we might have another bug around this one).

So I would keep it the same, but up to you.

This revision is now accepted and ready to land.Feb 14 2020, 6:06 AM
hokein updated this revision to Diff 244646.Feb 14 2020, 6:33 AM
hokein marked 2 inline comments as done.

address comment

clang-tools-extra/clangd/CodeComplete.cpp
107

hmm, I'm not sure we will actually encounter this case in practice, the completion didn't show up on Foo.^ or Foo.operat^or, Foo.opeator ^ shows completion results, but seems not running into this code path.

Reverted back, and removed the fixme.

This revision was automatically updated to reflect the committed changes.