cppcheck-suppress derefInvalidIteratorRedundantCheck

This commit is contained in:
gtsoul-tech 2024-11-08 16:07:19 +02:00
parent be0a86e78f
commit 4c1b76ad27

View File

@ -2223,6 +2223,10 @@ void mergeCluster(RoseGraph &g, const ReportManager &rm,
for (it2 = it; for (it2 = it;
it2 != vcluster.end() && cluster.size() < MERGE_GROUP_SIZE_MAX; it2 != vcluster.end() && cluster.size() < MERGE_GROUP_SIZE_MAX;
++it2) { ++it2) {
if (it2 == vcluster.end()) {
break;
}
// cppcheck-suppress derefInvalidIteratorRedundantCheck
RoseVertex v = *it2; RoseVertex v = *it2;
NGHolder *h = g[v].suffix.graph.get(); NGHolder *h = g[v].suffix.graph.get();
assert(!g[v].suffix.haig); /* should not be here if haig */ assert(!g[v].suffix.haig); /* should not be here if haig */