Skip to content

Commit c225605

Browse files
committed
QL: remove consistency errors related to resolving multiple predicates from parameterized modules
1 parent 06afe9c commit c225605

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ql/ql/src/codeql_ql/ast/internal/Predicate.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ module PredConsistency {
209209
not exists(p0.getAlias())
210210
) and
211211
c > 1 and
212-
resolvePredicateExpr(pe, p)
212+
resolvePredicateExpr(pe, p) and
213+
// parameterized modules are expected to resolve to multiple.
214+
not exists(Predicate sig | not exists(sig.getBody()) and resolvePredicateExpr(pe, sig))
213215
}
214216

215217
query predicate multipleResolveCall(Call call, int c, PredicateOrBuiltin p) {

0 commit comments

Comments
 (0)