diff --git a/cpp/ql/lib/semmle/code/cpp/exprs/Call.qll b/cpp/ql/lib/semmle/code/cpp/exprs/Call.qll index f5c8ef291f6..4ef241e3d25 100644 --- a/cpp/ql/lib/semmle/code/cpp/exprs/Call.qll +++ b/cpp/ql/lib/semmle/code/cpp/exprs/Call.qll @@ -387,8 +387,10 @@ class OverloadedArrayExpr extends FunctionCall { /** * Gets the expression giving the index. + * + * DEPRECATED: Use getArrayOffset/1 instead. */ - Expr getArrayOffset() { result = this.getArrayOffset(0) } + deprecated Expr getArrayOffset() { result = this.getArrayOffset(0) } /** * Gets the expression giving the nth index.