MCPcopy Create free account
hub / github.com/apple-oss-distributions/dyld / normalizePath

Function normalizePath

cache_builder/BuilderFileSystem.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32//
33
34static void normalizePath(std::string& path) {
35 // Remove a bunch of stuff we don't need, like trailing slashes.
36 while ( !path.empty() && (path.back() == '/'))
37 path.pop_back();
38}
39
40void SymlinkResolver::addFile(Diagnostics& diags, std::string path) {
41 if (path.front() != '/') {

Callers 2

addSymlinkMethod · 0.85
realPathMethod · 0.85

Calls 3

backMethod · 0.80
pop_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected