Skip to content

Commit c6fb500

Browse files
committed
C++: Change note and autoformat
1 parent 29df3cb commit c6fb500

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ class NewArrayExpr extends NewOrNewArrayExpr, @new_array_expr {
952952

953953
/**
954954
* Gets the number of elements in the array, if available.
955-
*
955+
*
956956
* For example, `new int[]{1,2,3}` has an array size of 3.
957957
*/
958958
int getArraySize() {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: feature
3+
---
4+
* 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.

0 commit comments

Comments
 (0)