This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Downrank members from base class
ClosedPublic

Authored by ioeric on Oct 24 2018, 3:44 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Oct 24 2018, 3:44 AM
ilya-biryukov added inline comments.Oct 24 2018, 5:07 AM
unittests/clangd/QualityTests.cpp
187 ↗(On Diff #170839)

The test case was (accidentally?) removed. Maybe restore?

ioeric marked an inline comment as done.Oct 24 2018, 6:16 AM
ioeric added inline comments.
unittests/clangd/QualityTests.cpp
187 ↗(On Diff #170839)

Thanks for the catch!

ioeric updated this revision to Diff 170862.Oct 24 2018, 6:16 AM
ioeric marked an inline comment as done.
  • restore accidentally removed test.
sammccall accepted this revision.Oct 24 2018, 6:17 AM
sammccall added inline comments.
clangd/Quality.cpp
380 ↗(On Diff #170862)

This seems like a pretty light penalty to me, I'd consider 0.5...

This revision is now accepted and ready to land.Oct 24 2018, 6:17 AM
ioeric updated this revision to Diff 170870.Oct 24 2018, 6:39 AM
ioeric marked an inline comment as done.
  • adjust parameter
ioeric added inline comments.Oct 24 2018, 6:39 AM
clangd/Quality.cpp
380 ↗(On Diff #170862)

0.5 sounds reasonable. I think we should penalize the non-instance member case more if this is 0.5 though. Made that 0.2. WDYT?

sammccall added inline comments.Oct 24 2018, 6:40 AM
clangd/Quality.cpp
380 ↗(On Diff #170862)

Agree, LG!

This revision was automatically updated to reflect the committed changes.