MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / addGlobalSymbol

Method addGlobalSymbol

erpcgen/src/SymbolScanner.cpp:1945–1955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1943}
1944
1945void SymbolScanner::addGlobalSymbol(Symbol *symbol)
1946{
1947 auto findDataTypeIT = m_forwardDeclarations.find(symbol->getName());
1948 if (findDataTypeIT != m_forwardDeclarations.end())
1949 {
1950 throw semantic_error(format_string("line %d: Declaring symbol '%s' already declared here '%d'",
1951 symbol->getFirstLine(), symbol->getName().c_str(),
1952 findDataTypeIT->second->getFirstLine()));
1953 }
1954 m_globals->addSymbol(symbol);
1955}

Callers

nothing calls this directly

Calls 6

semantic_errorClass · 0.85
format_stringFunction · 0.85
addSymbolMethod · 0.80
getNameMethod · 0.45
endMethod · 0.45
getFirstLineMethod · 0.45

Tested by

no test coverage detected