Skip to content

Commit fb0cae7

Browse files
committed
Swaps wrong_args globally
1 parent 3a764ad commit fb0cae7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/src/Expressions/CallArgs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ predicate too_many_args_objectapi(Call call, Object callable, int limit) {
107107
}
108108

109109
/** Holds if `call` has too many or too few arguments for `func` */
110-
predicate wrong_args(Call call, FunctionObject func, int limit, string too) {
110+
predicate wrong_args_objectapi(Call call, FunctionObject func, int limit, string too) {
111111
too_few_args_objectapi(call, func, limit) and too = "too few"
112112
or
113113
too_many_args_objectapi(call, func, limit) and too = "too many"

python/ql/src/Functions/IncorrectlyOverriddenMethod.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Expressions.CallArgs
1515
from Call call, FunctionObject func, FunctionObject overridden, string problem
1616
where
1717
func.overrides(overridden) and (
18-
wrong_args(call, func, _, problem) and correct_args_if_called_as_method(call, overridden)
18+
wrong_args_objectapi(call, func, _, problem) and correct_args_if_called_as_method(call, overridden)
1919
or
2020
exists(string name |
2121
illegally_named_parameter_objectapi(call, func, name) and problem = "an argument named '" + name + "'" and

0 commit comments

Comments
 (0)