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

Method hasFatalErrors

src/ErrorReporting/ErrorContainer.cpp:282–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282bool ErrorContainer::hasFatalErrors() const {
283 const std::map<ErrorDefinition::ErrorType, ErrorDefinition::ErrorInfo>&
284 infoMap = ErrorDefinition::getErrorInfoMap();
285 bool reportFatalError = false;
286 for (const Error& msg : m_errors) {
287 ErrorDefinition::ErrorType type = msg.m_errorId;
288 std::map<ErrorDefinition::ErrorType,
289 ErrorDefinition::ErrorInfo>::const_iterator itr =
290 infoMap.find(type);
291 if (itr != infoMap.end()) {
292 ErrorDefinition::ErrorInfo info = (*itr).second;
293 std::string severity;
294 switch (info.m_severity) {
295 case ErrorDefinition::FATAL:
296 reportFatalError = true;
297 break;
298 default:
299 break;
300 }
301 }
302 }
303 return reportFatalError;
304}
305
306std::pair<std::string, bool> ErrorContainer::createReport_() const {
307 std::string report;

Callers 6

prepareCompilation_Method · 0.80
compileFileSet_Method · 0.80
pythonAPI_Method · 0.80
parse_Method · 0.80
preprocess_Method · 0.80
preprocessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected