Amend test now that DataFlowCallable != Callable

This commit is contained in:
Chris Smowton
2023-03-28 16:08:28 +01:00
parent a5e5a5780d
commit 51ebc0bef2

View File

@@ -17,10 +17,10 @@ string metadata(Locatable l, string key) {
query predicate missingCallee(DataFlow::CallNode call, FuncDef callee) {
metadata(call.asExpr(), "callee") = metadata(callee, "name") and
not viableCallable(call.asExpr()).getFuncDef() = callee
not viableCallable(call.asExpr()).asCallable().getFuncDef() = callee
}
query predicate spuriousCallee(DataFlow::CallNode call, FuncDef callee) {
viableCallable(call.asExpr()).getFuncDef() = callee and
viableCallable(call.asExpr()).asCallable().getFuncDef() = callee and
not metadata(call.asExpr(), "callee") = metadata(callee, "name")
}