C++: Deprecate getArrayOffset/0

This commit is contained in:
Jeroen Ketema
2026-01-08 13:21:30 +01:00
parent e0f8b1254e
commit 4c3fb0c7c4

View File

@@ -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.