Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DDiagnosticIDs.cpp555 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestWarningOption() local
562 unsigned Distance = i->getName().edit_distance(Group, true, BestDistance); in getNearestWarningOption()
563 if (Distance == BestDistance) { in getNearestWarningOption()
566 } else if (Distance < BestDistance) { in getNearestWarningOption()
569 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()