Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DDiagnosticIDs.cpp587 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestWarningOption() local
594 unsigned Distance = i->getName().edit_distance(Group, true, BestDistance); in getNearestWarningOption()
595 if (Distance == BestDistance) { in getNearestWarningOption()
598 } else if (Distance < BestDistance) { in getNearestWarningOption()
601 BestDistance = Distance; in getNearestWarningOption()
/external/llvm/lib/Support/
DCommandLine.cpp204 unsigned BestDistance = 0; in LookupNearestOption() local
218 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
219 if (!Best || Distance < BestDistance) { in LookupNearestOption()
221 BestDistance = Distance; in LookupNearestOption()