mirror of
https://github.com/github/codeql.git
synced 2026-02-10 04:01:11 +01:00
change multipleResolveCall to ignore aliases
This commit is contained in:
committed by
GitHub
parent
bd86ffb35b
commit
48170f5ce0
@@ -251,7 +251,12 @@ module PredConsistency {
|
||||
}
|
||||
|
||||
query predicate multipleResolveCall(Call call, int c, PredicateOrBuiltin p) {
|
||||
c = strictcount(PredicateOrBuiltin p0 | resolveCall(call, p0)) and
|
||||
c =
|
||||
strictcount(PredicateOrBuiltin p0 |
|
||||
resolveCall(call, p0) and
|
||||
// aliases are expected to resolve to multiple.
|
||||
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias())
|
||||
) and
|
||||
c > 1 and
|
||||
resolveCall(call, p)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user