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

Method getMacroInfo

src/SourceCompile/CompilationUnit.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 : m_fileunit(fileunit), m_inDesignElement(false) {}
38
39MacroInfo* CompilationUnit::getMacroInfo(std::string_view macroName) {
40 MacroStorageRef::iterator itr = m_macros.find(macroName);
41 if (itr != m_macros.end()) {
42 return itr->second.back();
43 }
44 return nullptr;
45}
46
47void CompilationUnit::registerMacroInfo(std::string_view macroName,
48 MacroInfo* macro) {

Callers 8

syntaxErrorMethod · 0.45
evaluateMacro_Method · 0.45
getMacroMethod · 0.45
logErrorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected