Injected names being ranked too high was just a bug.
The high boost for keywords was intended, but was too much given how useless
keywords are. We should probably boost them on a case-by-case basis eventually.
Before:
After:
Paths
| Differential D48368
[clangd] Sema ranking tweaks: downrank keywords and injected names. ClosedPublic Authored by sammccall on Jun 20 2018, 7:43 AM.
Details Summary
Diff Detail
Event TimelineHerald added subscribers: cfe-commits, jkorous, MaskRay and 2 others. · View Herald TranscriptJun 20 2018, 7:43 AM Comment Actions The code looks good to me. It'd be nicer if you can put ranking screenshots (before vs after) in the patch summary.
This revision is now accepted and ready to land.Jun 27 2018, 1:27 AM Comment Actions Added before/after
Closed by commit rL335723: [clangd] Sema ranking tweaks: downrank keywords and injected names. (authored by sammccall). · Explain WhyJun 27 2018, 4:48 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 153043 clang-tools-extra/trunk/clangd/Quality.cpp
clang-tools-extra/trunk/unittests/clangd/QualityTests.cpp
|