LLVM 22.0.0git
|
Helper utility that encapsulates the logic for canonicalizing a virtual path and a path to copy from. More...
#include "llvm/Support/FileCollector.h"
Classes | |
struct | PathStorage |
Public Member Functions | |
LLVM_ABI PathStorage | canonicalize (StringRef SrcPath) |
Canonicalize a pair of virtual and real paths. | |
vfs::FileSystem & | getFileSystem () const |
Return the underlying file system. | |
PathCanonicalizer (IntrusiveRefCntPtr< vfs::FileSystem > VFS) |
Helper utility that encapsulates the logic for canonicalizing a virtual path and a path to copy from.
Definition at line 74 of file FileCollector.h.
|
inlineexplicit |
Definition at line 87 of file FileCollector.h.
References llvm::move().
FileCollector::PathCanonicalizer::PathStorage FileCollector::PathCanonicalizer::canonicalize | ( | StringRef | SrcPath | ) |
Canonicalize a pair of virtual and real paths.
Definition at line 105 of file FileCollector.cpp.
References llvm::FileCollector::PathCanonicalizer::PathStorage::CopyFrom, makeAbsolute(), llvm::sys::path::remove_dots(), and llvm::FileCollector::PathCanonicalizer::PathStorage::VirtualPath.
|
inline |
Return the underlying file system.
Definition at line 85 of file FileCollector.h.