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

Method appendErrors

src/ErrorReporting/ErrorContainer.cpp:122–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void ErrorContainer::appendErrors(ErrorContainer& rhs) {
123 FileSystem* const fileSystem = FileSystem::getInstance();
124 for (uint32_t i = 0; i < rhs.m_errors.size(); i++) {
125 Error err = rhs.m_errors[i];
126 if (!err.m_reported) {
127 // Translate IDs to master symbol table
128 for (auto& loc : err.m_locations) {
129 if (loc.m_fileId)
130 loc.m_fileId = fileSystem->copy(loc.m_fileId, m_symbolTable);
131 if (loc.m_object) {
132 loc.m_object =
133 m_symbolTable->copyFrom(loc.m_object, rhs.m_symbolTable);
134 }
135 }
136 addError(err);
137 }
138 }
139}
140
141std::tuple<std::string, bool, bool> ErrorContainer::createErrorMessage(
142 const Error& msg, bool reentrantPython) const {

Callers 2

compilation_Method · 0.80
compileFileSet_Method · 0.80

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected