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

Method getParent

src/Common/PlatformFileSystem.cpp:1111–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111PathId PlatformFileSystem::getParent(PathId id, SymbolTable *symbolTable) {
1112 if (!id) return BadPathId;
1113
1114 std::filesystem::path filepath = toPath(id);
1115 if (filepath.empty()) return BadPathId;
1116
1117 return filepath.has_parent_path()
1118 ? toPathId(filepath.parent_path().string(), symbolTable)
1119 : toPathId(".", symbolTable);
1120}
1121
1122std::pair<SymbolId, std::string_view> PlatformFileSystem::getLeaf(
1123 PathId id, SymbolTable *symbolTable) {

Callers 15

parseCommandLineMethod · 0.45
prepareCompilation_Method · 0.45
SLgetInstanceParentFunction · 0.45
saveMethod · 0.45
restoreDesignElementsMethod · 0.45
saveMethod · 0.45
saveMethod · 0.45
TESTFunction · 0.45
compileTfPortListMethod · 0.45
identifyTopModules_Method · 0.45
createBindInstance_Method · 0.45
elaborateInstance_Method · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36