Home
last modified time | relevance | path

Searched refs:ScopeDistance (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DFileDistance.h117 class ScopeDistance {
120 ScopeDistance(llvm::ArrayRef<std::string> QueryScopes);
DFileDistance.cpp214 ScopeDistance::ScopeDistance(llvm::ArrayRef<std::string> QueryScopes) in ScopeDistance() function in clang::clangd::ScopeDistance
217 unsigned ScopeDistance::distance(llvm::StringRef SymbolScope) { in distance()
DQuality.cpp335 static float scopeProximityScore(unsigned ScopeDistance) { in scopeProximityScore() argument
339 if (ScopeDistance == FileDistance::Unreachable) in scopeProximityScore()
341 return std::max(0.65, 2.0 * std::pow(0.6, ScopeDistance / 2.0)); in scopeProximityScore()
DQuality.h109 ScopeDistance *ScopeProximityMatch = nullptr;
DCodeComplete.cpp1259 llvm::Optional<ScopeDistance> ScopeProximity;
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFileDistanceTests.cpp111 TEST(ScopeDistance, Smoke) { in TEST() argument
112 ScopeDistance D({"x::y::z", "x::", "", "a::"}); in TEST()
DQualityTests.cpp256 ScopeDistance ScopeProximity({"x::y::"}); in TEST()
317 ScopeDistance ScopeProximity({"x::y::z::", "x::", "llvm::", ""}); in TEST()