File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,11 @@ class ArrayType extends DerivedType {
1369
1369
override predicate isDeeplyConst ( ) { this .getBaseType ( ) .isDeeplyConst ( ) } // No such thing as a const array type
1370
1370
1371
1371
override predicate isDeeplyConstBelow ( ) { this .getBaseType ( ) .isDeeplyConst ( ) }
1372
+
1373
+ /**
1374
+ * Holds if this array is a variable-length array (VLA).
1375
+ */
1376
+ predicate isVla ( ) { type_is_vla ( underlyingElement ( this ) ) }
1372
1377
}
1373
1378
1374
1379
/**
Original file line number Diff line number Diff line change @@ -2178,6 +2178,8 @@ variable_vla(
2178
2178
int decl: @stmt_vla_decl ref
2179
2179
);
2180
2180
2181
+ type_is_vla(unique int type_id: @type ref)
2182
+
2181
2183
if_initialization(
2182
2184
unique int if_stmt: @stmt_if ref,
2183
2185
int init_id: @stmt ref
You can’t perform that action at this time.
0 commit comments