class FileCollector::PathCanonicalizer
Declaration
class FileCollector::PathCanonicalizer { /* full declaration omitted */ };
Description
Helper utility that encapsulates the logic for canonicalizing a virtual path and a path to copy from.
Declared at: llvm/include/llvm/Support/FileCollector.h:73
Member Variables
- private StringMap<std::string> CachedDirs
Method Overview
- public llvm::FileCollector::PathCanonicalizer::PathStorage canonicalize(llvm::StringRef SrcPath)
- private void updateWithRealPath(SmallVectorImpl<char> & Path)
Methods
¶llvm::FileCollector::PathCanonicalizer::
PathStorage
canonicalize(llvm::StringRef SrcPath)
llvm::FileCollector::PathCanonicalizer::
PathStorage
canonicalize(llvm::StringRef SrcPath)
Description
Canonicalize a pair of virtual and real paths.
Declared at: llvm/include/llvm/Support/FileCollector.h:81
Parameters
- llvm::StringRef SrcPath
¶void updateWithRealPath(
SmallVectorImpl<char>& Path)
void updateWithRealPath(
SmallVectorImpl<char>& Path)
Description
Replace with a (mostly) real path, or don't modify. Resolves symlinks in the directory, using \a CachedDirs to avoid redundant lookups, but leaves the filename as a possible symlink.
Declared at: llvm/include/llvm/Support/FileCollector.h:87
Parameters
- SmallVectorImpl<char>& Path