This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Skip informative qualifier chunks.
ClosedPublic

Authored by ilya-biryukov on Sep 20 2017, 8:07 AM.

Details

Summary

Completion results look much nicer without them.
Informative qualifiers are stored for every method from a base class, even when
calling those methods does not require any qualifiers. For example,

struct Foo { int foo(); };
struct Bar : Foo { };
void test() { Bar(). // Completion item label was 'Foo::foo' before,
                     // but inserted text was simply 'foo'.
                     // We now simply show 'foo' in completion item label.

They effectively cluttered the completion list without providing much value.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Sep 20 2017, 8:07 AM
rwols added inline comments.Sep 20 2017, 12:33 PM
test/clangd/completion-qualifiers.test
12 ↗(On Diff #116001)

CHECK-DAG typo?

  • Fixed CHECK-DAG typo.
test/clangd/completion-qualifiers.test
12 ↗(On Diff #116001)

Totally! Thanks for spotting this.

rwols accepted this revision.Sep 23 2017, 10:47 AM

LGTM

This revision is now accepted and ready to land.Sep 23 2017, 10:47 AM
This revision was automatically updated to reflect the committed changes.