Skip to content

Commit 4c3fb0c

Browse files
committed
C++: Deprecate getArrayOffset/0
1 parent e0f8b12 commit 4c3fb0c

File tree

1 file changed

+3
-1
lines changed
  • cpp/ql/lib/semmle/code/cpp/exprs

1 file changed

+3
-1
lines changed

cpp/ql/lib/semmle/code/cpp/exprs/Call.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,10 @@ class OverloadedArrayExpr extends FunctionCall {
387387

388388
/**
389389
* Gets the expression giving the index.
390+
*
391+
* DEPRECATED: Use getArrayOffset/1 instead.
390392
*/
391-
Expr getArrayOffset() { result = this.getArrayOffset(0) }
393+
deprecated Expr getArrayOffset() { result = this.getArrayOffset(0) }
392394

393395
/**
394396
* Gets the expression giving the nth index.

0 commit comments

Comments
 (0)