mirror of
https://github.com/github/codeql.git
synced 2026-02-21 09:23:40 +01:00
C++: Also override the single-parameter 'isParameterDeref' in 'InParameterDeref'.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user