|
LLVM 24.0.0git
|
Prefix mapping utility. More...
#include "llvm/Support/PrefixMapper.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringExtras.h"Go to the source code of this file.
Functions | |
| template<bool StopOnInvalid, class StringT> | |
| static std::optional< StringRef > | transformJoinedImpl (ArrayRef< StringT > JoinedMappings, SmallVectorImpl< MappedPrefix > &Mappings) |
| static Error | makeErrorForInvalidJoin (std::optional< StringRef > Joined) |
| static bool | startsWith (StringRef Path, StringRef Prefix, sys::path::Style PathStyle) |
| FIXME: Copy/pasted from llvm/lib/Support/Path.cpp. | |
Prefix mapping utility.
Definition in file PrefixMapper.cpp.
Definition at line 49 of file PrefixMapper.cpp.
References llvm::createStringError(), llvm::inconvertibleErrorCode(), and llvm::Error::success().
Referenced by llvm::MappedPrefix::transformJoined(), and llvm::MappedPrefix::transformJoined().
|
static |
FIXME: Copy/pasted from llvm/lib/Support/Path.cpp.
Definition at line 87 of file PrefixMapper.cpp.
References E(), I, llvm::sys::path::is_separator(), llvm::sys::path::is_style_posix(), llvm::sys::path::native, llvm::sys::path::posix, and llvm::toLower().
|
static |
Definition at line 32 of file PrefixMapper.cpp.
References llvm::MappedPrefix::getFromJoined(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorImpl< T >::resize(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by llvm::MappedPrefix::transformJoined(), llvm::MappedPrefix::transformJoined(), llvm::MappedPrefix::transformJoinedIfValid(), and llvm::MappedPrefix::transformJoinedIfValid().