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

Method logError

src/SourceCompile/SV3_1aTreeShapeHelper.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 m_ppOutputFileLocation(false) {}
82
83void SV3_1aTreeShapeHelper::logError(ErrorDefinition::ErrorType error,
84 antlr4::ParserRuleContext* ctx,
85 std::string_view object,
86 bool printColumn) {
87 ParseUtils::LineColumn lineCol = ParseUtils::getLineColumn(m_tokens, ctx);
88
89 Location loc(
90 m_pf->getFileId(lineCol.first /*+ m_lineOffset*/),
91 m_pf->getLineNb(lineCol.first /*+ m_lineOffset*/),
92 printColumn ? lineCol.second : 0,
93 m_pf->getCompileSourceFile()->getSymbolTable()->registerSymbol(object));
94 Error err(error, loc);
95 m_pf->addError(err);
96}
97
98void SV3_1aTreeShapeHelper::logError(ErrorDefinition::ErrorType error,
99 Location& loc, bool showDuplicates) {

Callers

nothing calls this directly

Calls 7

getFileIdMethod · 0.45
getLineNbMethod · 0.45
registerSymbolMethod · 0.45
getSymbolTableMethod · 0.45
getCompileSourceFileMethod · 0.45
addErrorMethod · 0.45
getErrorContainerMethod · 0.45

Tested by

no test coverage detected