Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clangd/
DFuzzyMatch.cpp77 : PatN(std::min<int>(MaxPat, Pattern.size())), in FuzzyMatcher()
78 ScoreScale(PatN ? float{1} / (PerfectBonus * PatN) : 0), WordN(0) { in FuzzyMatcher()
79 std::copy(Pattern.begin(), Pattern.begin() + PatN, Pat);
80 for (int I = 0; I < PatN; ++I)
84 for (int P = 0; P <= PatN; ++P)
88 PatTypeSet = calculateRoles(llvm::StringRef(Pat, PatN),
89 llvm::makeMutableArrayRef(PatRole, PatN));
95 if (!PatN) in match()
98 auto Best = std::max(Scores[PatN][WordN][Miss].Score, in match()
99 Scores[PatN][WordN][Match].Score); in match()
[all …]
DFuzzyMatch.h82 llvm::StringRef pattern() const { return llvm::StringRef(Pat, PatN); } in pattern()
83 bool empty() const { return PatN == 0; } in empty()
109 int PatN; // Length variable