This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Increase the TooMany limit for index-based textual navigation to 5
ClosedPublic

Authored by nridge on Oct 26 2020, 12:22 AM.

Diff Detail

Event Timeline

nridge created this revision.Oct 26 2020, 12:22 AM
nridge requested review of this revision.Oct 26 2020, 12:22 AM

My experience using this feature in real codebases has been that we take this early-exit too often; the limit of 3 is fairly easy to hit due to things like layers of wrappers that repeat a function name. Bumping the limit to 5 has increased the usefulness for me.

sammccall accepted this revision.Oct 26 2020, 1:43 AM
This revision is now accepted and ready to land.Oct 26 2020, 1:43 AM

My experience using this feature in real codebases has been that we take this early-exit too often; the limit of 3 is fairly easy to hit due to things like layers of wrappers that repeat a function name. Bumping the limit to 5 has increased the usefulness for me.

What about counting number of different files, rather than number of symbols ?

My experience using this feature in real codebases has been that we take this early-exit too often; the limit of 3 is fairly easy to hit due to things like layers of wrappers that repeat a function name. Bumping the limit to 5 has increased the usefulness for me.

What about counting number of different files, rather than number of symbols ?

If you mean counting the number of different files but keeping the limit at 3, I don't think that would change much; in my experience, you often have wrappers that repeat the same names in a different file than the functions they are wrapping.