C++: Implement Function::hasErrors()

This commit is contained in:
Calum Grant
2024-10-01 11:00:44 +01:00
parent 60abea17e6
commit 4b5aa1497b
4 changed files with 17 additions and 2 deletions

View File

@@ -89,5 +89,6 @@ from
where
conf.hasFlowPath(source, sink) and
isSinkImpl(sink.getInstruction(), va) and
v = va.getTarget()
v = va.getTarget() and
not v.getFunction().hasErrors()
select va, source, sink, "The variable $@ may not be initialized at this access.", v, v.getName()