C++: Change note and autoformat

This commit is contained in:
Calum Grant
2024-07-11 14:21:09 +01:00
parent 29df3cb5b3
commit c6fb50095b
2 changed files with 5 additions and 1 deletions

View File

@@ -952,7 +952,7 @@ class NewArrayExpr extends NewOrNewArrayExpr, @new_array_expr {
/**
* Gets the number of elements in the array, if available.
*
*
* For example, `new int[]{1,2,3}` has an array size of 3.
*/
int getArraySize() {

View File

@@ -0,0 +1,4 @@
---
category: feature
---
* The class `NewArrayExpr` adds a predicate `getArraySize()` to allow a more convenient way to access the static size of the array when the extent is missing.