C++: Also override the single-parameter 'isParameterDeref' in 'InParameterDeref'.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-11-06 13:23:31 +00:00
parent 392b2af923
commit cd2eec0aa0

View File

@@ -254,6 +254,8 @@ class InParameterDeref extends FunctionInput, TInParameterDeref {
/** Gets the zero-based index of the parameter. */
ParameterIndex getIndex() { result = index }
override predicate isParameterDeref(ParameterIndex i) { index = i }
override predicate isParameterDeref(ParameterIndex i, int indirection) {
i = index and indirectionIndex = indirection
}