mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
QL: remove consistency errors related to resolving multiple predicates from parameterized modules
This commit is contained in:
@@ -209,7 +209,9 @@ module PredConsistency {
|
||||
not exists(p0.getAlias())
|
||||
) and
|
||||
c > 1 and
|
||||
resolvePredicateExpr(pe, p)
|
||||
resolvePredicateExpr(pe, p) and
|
||||
// parameterized modules are expected to resolve to multiple.
|
||||
not exists(Predicate sig | not exists(sig.getBody()) and resolvePredicateExpr(pe, sig))
|
||||
}
|
||||
|
||||
query predicate multipleResolveCall(Call call, int c, PredicateOrBuiltin p) {
|
||||
|
||||
Reference in New Issue
Block a user