Searched refs:ScopeDistance (Results 1 – 7 of 7) sorted by relevance
117 class ScopeDistance {120 ScopeDistance(llvm::ArrayRef<std::string> QueryScopes);
214 ScopeDistance::ScopeDistance(llvm::ArrayRef<std::string> QueryScopes) in ScopeDistance() function in clang::clangd::ScopeDistance217 unsigned ScopeDistance::distance(llvm::StringRef SymbolScope) { in distance()
335 static float scopeProximityScore(unsigned ScopeDistance) { in scopeProximityScore() argument339 if (ScopeDistance == FileDistance::Unreachable) in scopeProximityScore()341 return std::max(0.65, 2.0 * std::pow(0.6, ScopeDistance / 2.0)); in scopeProximityScore()
109 ScopeDistance *ScopeProximityMatch = nullptr;
1259 llvm::Optional<ScopeDistance> ScopeProximity;
111 TEST(ScopeDistance, Smoke) { in TEST() argument112 ScopeDistance D({"x::y::z", "x::", "", "a::"}); in TEST()
256 ScopeDistance ScopeProximity({"x::y::"}); in TEST()317 ScopeDistance ScopeProximity({"x::y::z::", "x::", "llvm::", ""}); in TEST()