From 4c3fb0c7c44da94768b0d9f1399cd007f9447b8d Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Thu, 8 Jan 2026 13:21:30 +0100 Subject: [PATCH] C++: Deprecate getArrayOffset/0 --- cpp/ql/lib/semmle/code/cpp/exprs/Call.qll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.