Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DDiagnosticIDs.cpp574 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestOption() local
580 unsigned Distance = O.getName().edit_distance(Group, true, BestDistance); in getNearestOption()
581 if (Distance > BestDistance) in getNearestOption()
589 if (Distance == BestDistance) { in getNearestOption()
592 } else if (Distance < BestDistance) { in getNearestOption()
595 BestDistance = Distance; in getNearestOption()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Option/
DOptTable.cpp256 unsigned BestDistance = UINT_MAX; in findNearest() local
304 /*MaxEditDistance=*/BestDistance); in findNearest()
305 if (Distance < BestDistance) { in findNearest()
306 BestDistance = Distance; in findNearest()
310 return BestDistance; in findNearest()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DCommandLine.cpp478 unsigned BestDistance = 0; in LookupNearestOption() local
492 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
493 if (!Best || Distance < BestDistance) { in LookupNearestOption()
495 BestDistance = Distance; in LookupNearestOption()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DCommandLine.cpp482 unsigned BestDistance = 0; in LookupNearestOption() local
496 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
497 if (!Best || Distance < BestDistance) { in LookupNearestOption()
499 BestDistance = Distance; in LookupNearestOption()
/external/llvm/lib/Support/
DCommandLine.cpp462 unsigned BestDistance = 0; in LookupNearestOption() local
476 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
477 if (!Best || Distance < BestDistance) { in LookupNearestOption()
479 BestDistance = Distance; in LookupNearestOption()