#include "support/Path.h"
#include "llvm/Support/Path.h"
namespace clang {
namespace clangd {
#ifdef CLANGD_PATH_CASE_INSENSITIVE
std::string maybeCaseFoldPath(PathRef Path) { return Path.lower(); }
bool pathEqual(PathRef A, PathRef B) { return A.equals_insensitive(B); }
#else
std::string maybeCaseFoldPath(PathRef Path) { … }
bool pathEqual(PathRef A, PathRef B) { … }
#endif
PathRef absoluteParent(PathRef Path) { … }
bool pathStartsWith(PathRef Ancestor, PathRef Path,
llvm::sys::path::Style Style) { … }
}
}