Internals: Remove dead code, fix or sign off coverage

Remove/fix/signoff uncontroversial code coverage holes. Also added a
couple TODOs that should be investigated at some point
This commit is contained in:
Geza Lore
2025-10-08 08:24:06 +01:00
parent 1a8f9f0483
commit 838b8a2bec
47 changed files with 267 additions and 731 deletions
+2 -2
View File
@@ -344,10 +344,10 @@ class TraceDeclVisitor final : public VNVisitor {
void checkCalls(const AstCFunc* funcp) {
if (!v3Global.opt.debugCheck()) return;
checkCallsRecurse(funcp);
if (!m_declUncalledps.empty()) {
if (!m_declUncalledps.empty()) { // LCOV_EXCL_START
for (auto tracep : m_declUncalledps) UINFO(0, "-nodep " << tracep);
(*(m_declUncalledps.begin()))->v3fatalSrc("Created TraceDecl which is never called");
}
} // LCOV_EXCL_STOP
}
void checkCallsRecurse(const AstCFunc* funcp) {
funcp->foreach([this](const AstNode* nodep) {