Home
last modified time | relevance | path

Searched refs:PerfectBonus (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DFuzzyMatch.cpp74 static constexpr int PerfectBonus = 4; // Perfect per-pattern-char score. variable
78 ScoreScale(PatN ? float{1} / (PerfectBonus * PatN) : 0), WordN(0) { in FuzzyMatcher()
103 ScoreScale * std::min(PerfectBonus * PatN, std::max<int>(0, Best)); in match()
304 assert(S <= PerfectBonus); in matchBonus()