llvm/clang-tools-extra/clangd/support/Path.cpp

//===--- Path.cpp -------------------------------------------*- C++-*------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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  // NOT CLANGD_PATH_CASE_INSENSITIVE
std::string maybeCaseFoldPath(PathRef Path) {}
bool pathEqual(PathRef A, PathRef B) {}
#endif // CLANGD_PATH_CASE_INSENSITIVE

PathRef absoluteParent(PathRef Path) {}

bool pathStartsWith(PathRef Ancestor, PathRef Path,
                    llvm::sys::path::Style Style) {}
} // namespace clangd
} // namespace clang