Home
last modified time | relevance | path

Searched refs:BestDistance (Results 1 – 4 of 4) 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/lib/Support/
DCommandLine.cpp201 unsigned BestDistance = 0; in LookupNearestOption() local
215 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
216 if (!Best || Distance < BestDistance) { in LookupNearestOption()
218 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()