[PATCH] D94697: [clangd] Update CC Ranking model with better sampling.
Adam Czachorowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 04:33:42 PST 2021
adamcz accepted this revision.
adamcz added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/Quality.cpp:515
+ E.setFractionNameInContext(
+ Relevance.ContextWords ? NumMatch * 1.0 / Relevance.ContextWords->size()
+ : 0);
----------------
Please add a guard for division by zero
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94697/new/
https://reviews.llvm.org/D94697
More information about the cfe-commits
mailing list