Lines Matching defs:Candidates
33 // - We only consider compile commands for c-family languages as candidates.
35 // we prefer candidates from the same language.
37 // - For .h files, candidates from any c-family language are acceptable.
327 // when scoring the candidates.
356 // Candidates with extensions matching PreferLanguage will be chosen over
357 // others (unless it's TY_INVALID, or all candidates are bad).
362 auto Candidates = scoreCandidates(Filename);
364 pickWinner(Candidates, Filename, PreferLanguage);
404 DenseMap<size_t, int> Candidates; // Index -> score.
407 Candidates[Entry.second] += Points;
420 return Candidates;
423 // Pick a single winner from the set of scored candidates.
425 std::pair<size_t, int> pickWinner(const DenseMap<size_t, int> &Candidates,
436 for (const auto &Candidate : Candidates) {
500 // Indexes of candidates by certain substrings.