clang-tools 20.0.0git
|
Support lookups like FileDistance, but the lookup keys are symbol scopes. More...
#include <FileDistance.h>
Public Member Functions | |
ScopeDistance (llvm::ArrayRef< std::string > QueryScopes) | |
QueryScopes[0] is the preferred scope. | |
unsigned | distance (llvm::StringRef SymbolScope) |
Support lookups like FileDistance, but the lookup keys are symbol scopes.
For example, a scope "na::nb::" is converted to "/na/nb".
Definition at line 112 of file FileDistance.h.
clang::clangd::ScopeDistance::ScopeDistance | ( | llvm::ArrayRef< std::string > | QueryScopes | ) |
QueryScopes[0] is the preferred scope.
Definition at line 216 of file FileDistance.cpp.
unsigned clang::clangd::ScopeDistance::distance | ( | llvm::StringRef | SymbolScope | ) |
Definition at line 219 of file FileDistance.cpp.
References clang::clangd::FileDistance::distance(), and clang::clangd::scopeToPath().
Referenced by clang::clangd::SymbolRelevanceSignals::calculateDerivedSignals().