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

Method getPythonCacheFile

src/Common/FileSystem.cpp:352–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352PathId FileSystem::getPythonCacheFile(bool isUnitCompilation,
353 PathId sourceFileId,
354 SymbolId libraryNameId,
355 SymbolTable *symbolTable) {
356 if (!sourceFileId || !libraryNameId) return BadPathId;
357
358 const std::string_view libraryName = symbolTable->getSymbol(libraryNameId);
359 if (libraryName == BadRawSymbol) return BadPathId;
360
361 return getPythonCacheFile(isUnitCompilation, sourceFileId, libraryName,
362 symbolTable);
363}
364
365std::filesystem::file_time_type FileSystem::modtime(PathId fileId) {
366 return modtime(fileId, std::filesystem::file_time_type::min());

Callers 1

getCacheFileIdMethod · 0.45

Calls 1

getSymbolMethod · 0.45

Tested by

no test coverage detected