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

Function ModuleHasFirstFileContent

src/API/SLAPI.cpp:485–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483
484template <typename ClassOrPackageOrProgram>
485static bool ModuleHasFirstFileContent(const ClassOrPackageOrProgram* module) {
486 if (!module) return false;
487 if (module->getFileContents().empty()) return false;
488 return module->getFileContents()[0] != nullptr;
489}
490
491std::string SLgetModuleFile(ModuleDefinition* module) {
492 if (!ModuleHasFirstFileContent(module)) return "";

Callers 12

SLgetModuleFileFunction · 0.85
SLgetModuleLineFunction · 0.85
SLgetModuleFileContentFunction · 0.85
SLgetClassFileFunction · 0.85
SLgetClassLineFunction · 0.85
SLgetClassFileContentFunction · 0.85
SLgetPackageFileFunction · 0.85
SLgetPackageLineFunction · 0.85
SLgetPackageFileContentFunction · 0.85
SLgetProgramFileFunction · 0.85
SLgetProgramLineFunction · 0.85
SLgetProgramFileContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected