@@ -949,13 +949,13 @@ class DeleteOrDeleteArrayExpr extends Expr, TDeleteOrDeleteArrayExpr {
949
949
DestructorCall getDestructorCall ( ) { result = this .getChild ( 1 ) }
950
950
951
951
/**
952
- * Gets the destructor to be called to destroy the object(s) , if any.
952
+ * Gets the destructor to be called to destroy the object/array , if any.
953
953
*/
954
954
Destructor getDestructor ( ) { result = this .getDestructorCall ( ) .getTarget ( ) }
955
955
956
956
/**
957
- * Gets the `operator delete` that deallocates storage. Does not hold
958
- * if the type being destroyed has a virtual destructor. In that case, the
957
+ * Gets the `operator delete` or `operator delete[]` that deallocates storage.
958
+ * Does not hold if the type being destroyed has a virtual destructor. In that case, the
959
959
* `operator delete` that will be called is determined at runtime based on the
960
960
* dynamic type of the object.
961
961
*/
@@ -969,10 +969,10 @@ class DeleteOrDeleteArrayExpr extends Expr, TDeleteOrDeleteArrayExpr {
969
969
deprecated FunctionCall getAllocatorCall ( ) { result = this .getChild ( 0 ) }
970
970
971
971
/**
972
- * Gets the call to a non-default `operator delete` that deallocates storage, if any.
972
+ * Gets the call to a non-default `operator delete`/`delete[]` that deallocates storage, if any.
973
973
*
974
974
* This will only be present when the type being deleted has a custom `operator delete` and
975
- * is not a class with a virtual destructor.
975
+ * does not have a virtual destructor.
976
976
*/
977
977
FunctionCall getDeallocatorCall ( ) { result = this .getChild ( 0 ) }
978
978
@@ -997,12 +997,13 @@ class DeleteOrDeleteArrayExpr extends Expr, TDeleteOrDeleteArrayExpr {
997
997
}
998
998
999
999
/**
1000
- * Gets the object being deleted.
1000
+ * Gets the object/array being deleted.
1001
1001
*/
1002
- Expr getExpr ( ) {
1002
+ Expr getExpr ( ) {
1003
1003
// If there is a destuctor call, the object being deleted is the qualifier
1004
1004
// otherwise it is the third child.
1005
- result = this .getChild ( 3 ) or result = this .getDestructorCall ( ) .getQualifier ( ) }
1005
+ result = this .getChild ( 3 ) or result = this .getDestructorCall ( ) .getQualifier ( )
1006
+ }
1006
1007
}
1007
1008
1008
1009
/**
0 commit comments