MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / toPath

Method toPath

src/Common/FileSystem.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105std::string_view FileSystem::toPath(PathId id) {
106 static constexpr std::string_view kEmpty;
107 if (!id) return kEmpty;
108
109 const std::string_view symbol = id.getSymbolTable()->getSymbol((SymbolId)id);
110 return (symbol == SymbolTable::getBadSymbol()) ? kEmpty : symbol;
111}
112
113PathId FileSystem::getWorkingDir(SymbolTable *symbolTable) {
114 return toPathId(getWorkingDir(), symbolTable);

Callers 15

mainFunction · 0.80
mainFunction · 0.80
executeCompilationFunction · 0.80
TESTFunction · 0.80
addWorkingDirectory_Method · 0.80
parseCommandLineMethod · 0.80
SLgetFileFunction · 0.80
SLgetModuleFileFunction · 0.80
SLgetClassFileFunction · 0.80
SLgetPackageFileFunction · 0.80
SLgetProgramFileFunction · 0.80
SLgetInstanceFileNameFunction · 0.80

Calls 2

getSymbolMethod · 0.45
getSymbolTableMethod · 0.45

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64