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

Method getType

src/Common/PlatformFileSystem.cpp:1134–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132}
1133
1134std::pair<SymbolId, std::string_view> PlatformFileSystem::getType(
1135 PathId id, SymbolTable *symbolTable) {
1136 if (!id) return {BadSymbolId, BadRawSymbol};
1137
1138 const std::filesystem::path filepath = toPath(id);
1139 if (!filepath.has_extension()) {
1140 return {BadSymbolId, BadRawSymbol};
1141 }
1142
1143 return symbolTable->add(filepath.extension().string());
1144}
1145
1146void PlatformFileSystem::printConfiguration(std::ostream &out) {
1147 out << "=== FileSystem Configuration ===" << std::endl;

Callers 4

cacheErrorsMethod · 0.45
restoreTimeInfosMethod · 0.45
restoreDesignElementsMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36