clang-tools 20.0.0git
|
#include <FileDistance.h>
Public Member Functions | |
FileDistance (llvm::StringMap< SourceParams > Sources, const FileDistanceOptions &Opts={}) | |
unsigned | distance (llvm::StringRef Path) |
Static Public Attributes | |
static constexpr unsigned | Unreachable = std::numeric_limits<unsigned>::max() |
static const llvm::hash_code | RootHash |
Definition at line 67 of file FileDistance.h.
clang::clangd::FileDistance::FileDistance | ( | llvm::StringMap< SourceParams > | Sources, |
const FileDistanceOptions & | Opts = {} |
||
) |
Definition at line 61 of file FileDistance.cpp.
References clang::clangd::canonicalize(), dlog, Parent, RootHash, and Unreachable.
unsigned clang::clangd::FileDistance::distance | ( | llvm::StringRef | Path | ) |
Definition at line 120 of file FileDistance.cpp.
References clang::clangd::FileDistanceOptions::AllowDownTraversalFromRoot, clang::clangd::canonicalize(), dlog, clang::clangd::FileDistanceOptions::DownCost, RootHash, and Unreachable.
Referenced by clang::clangd::ScopeDistance::distance(), and clang::clangd::URIDistance::distance().
|
static |
Definition at line 70 of file FileDistance.h.
Referenced by distance(), and FileDistance().
|
staticconstexpr |
Definition at line 69 of file FileDistance.h.
Referenced by clang::clangd::SymbolRelevanceSignals::calculateDerivedSignals(), distance(), clang::clangd::URIDistance::distance(), FileDistance(), clang::clangd::fileProximityScore(), and clang::clangd::scopeProximityScore().