|
clang-tools 22.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 215 of file FileDistance.cpp.
References clang::clangd::createScopeFileDistance(), and ScopeDistance().
Referenced by ScopeDistance().
| unsigned clang::clangd::ScopeDistance::distance | ( | llvm::StringRef | SymbolScope | ) |
Definition at line 218 of file FileDistance.cpp.
References clang::clangd::scopeToPath().