41 #include "llvm/ADT/DenseMap.h" 42 #include "llvm/ADT/DenseMapInfo.h" 43 #include "llvm/ADT/SmallString.h" 44 #include "llvm/ADT/StringRef.h" 45 #include "llvm/Support/Allocator.h" 46 #include "llvm/Support/Path.h" 47 #include "llvm/Support/StringSaver.h" 62 unsigned MaxUpTraversals = std::numeric_limits<unsigned>::max();
69 static constexpr
unsigned kUnreachable = std::numeric_limits<unsigned>::max();
75 unsigned distance(llvm::StringRef
Path);
80 llvm::DenseMap<llvm::hash_code, unsigned> Cache;
91 : Sources(Sources), Opts(Opts) {}
95 unsigned distance(llvm::StringRef
URI);
102 llvm::DenseMap<llvm::hash_code, unsigned> Cache;
103 llvm::StringMap<SourceParams> Sources;
104 llvm::StringMap<std::unique_ptr<FileDistance>> ByScheme;
static const char * Scheme
URIDistance(llvm::StringMap< SourceParams > Sources, const FileDistanceOptions &Opts={})
std::string Path
A typedef to represent a file path.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
A URI describes the location of a source file.