Home
last modified time | relevance | path

Searched refs:BestDistance (Results 1 – 8 of 8) 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/llvm-project/clang/lib/Basic/
DDiagnosticIDs.cpp689 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestOption() local
695 unsigned Distance = O.getName().edit_distance(Group, true, BestDistance); in getNearestOption()
696 if (Distance > BestDistance) in getNearestOption()
704 if (Distance == BestDistance) { in getNearestOption()
707 } else if (Distance < BestDistance) { in getNearestOption()
710 BestDistance = Distance; in getNearestOption()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Option/
DOptTable.cpp256 unsigned BestDistance = UINT_MAX; in findNearest() local
303 /*MaxEditDistance=*/BestDistance); in findNearest()
313 if (Distance < BestDistance) { in findNearest()
314 BestDistance = Distance; in findNearest()
319 return BestDistance; in findNearest()
/external/llvm-project/llvm/lib/Option/
DOptTable.cpp260 unsigned BestDistance = UINT_MAX; in findNearest() local
307 /*MaxEditDistance=*/BestDistance); in findNearest()
317 if (Distance < BestDistance) { in findNearest()
318 BestDistance = Distance; in findNearest()
323 return BestDistance; in findNearest()
/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()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DCommandLine.cpp487 unsigned BestDistance = 0; in LookupNearestOption() local
501 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
502 if (!Best || Distance < BestDistance) { in LookupNearestOption()
504 BestDistance = Distance; in LookupNearestOption()
/external/llvm-project/llvm/lib/Support/
DCommandLine.cpp590 unsigned BestDistance = 0; in LookupNearestOption() local
608 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
609 if (!Best || Distance < BestDistance) { in LookupNearestOption()
611 BestDistance = Distance; in LookupNearestOption()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCommandLine.cpp590 unsigned BestDistance = 0; in LookupNearestOption() local
604 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()
605 if (!Best || Distance < BestDistance) { in LookupNearestOption()
607 BestDistance = Distance; in LookupNearestOption()