Internals: Fix coverage exclusion markers

This commit is contained in:
Geza Lore 2025-10-01 21:20:50 +01:00
parent e9c48cd1ce
commit aaa49273cf
5 changed files with 5 additions and 5 deletions

View File

@ -180,7 +180,7 @@ private:
// Cadence Incisive has these as abstract functions so we must create them
void set_time_unit(int exponent10_seconds) override {} // deprecated
#endif
void set_time_unit(double v, sc_core::sc_time_unit tu) override {} // LCOV_EXCL_LINE
void set_time_unit(double v, sc_core::sc_time_unit tu) override {}
//--------------------------------------------------
// SystemC 2.1.v1

View File

@ -1281,7 +1281,7 @@ char* AstNode::dumpTreeJsonGdb(intptr_t nodep) {
return dumpTreeJsonGdb(reinterpret_cast<const AstNode*>(nodep));
}
// cppcheck-suppress unusedFunction // Debug only
void AstNode::dumpGdb(const AstNode* nodep) { // For GDB only // LCOV_EXCL_LINE
void AstNode::dumpGdb(const AstNode* nodep) { // For GDB only // LCOV_EXCL_START
if (!nodep) {
cout << "<nullptr>" << endl;
return;

View File

@ -214,7 +214,7 @@ class CombineVisitor final : VNVisitor {
// only used in tracing functions, which are not combined. Blow up in case this changes.
nodep->v3fatalSrc(
"Don't know how to combine functions that are referenced via AstAddrOfCFunc");
// LCOV_EXCL_END
// LCOV_EXCL_STOP
}
//--------------------

View File

@ -805,7 +805,7 @@ public:
cout << "- Needs flipping: " << needsFlip << "\n";
cout << "- Needs cleaning: " << needsCleaning << "\n";
cout << "- Size: " << resultOps << " input size: " << visitor.m_ops << "\n";
} // LCOV_EXCL_END
} // LCOV_EXCL_STOP
// Sometimes we have no terms left after ignoring redundant terms
// (all of which were zeroes)

View File

@ -1007,7 +1007,7 @@ class DelayedVisitor final : public VNVisitor {
switch (vscpInfo.m_scheme) {
case Scheme::Undecided: // LCOV_EXCL_START
UASSERT_OBJ(false, vscp, "Failed to choose NBA scheme");
break;
break; // LCOV_EXCL_STOP
case Scheme::UnsupportedCompoundArrayInLoop: {
// Will report error at the site of the NBA
break;