We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6b20d7 commit 60d4efdCopy full SHA for 60d4efd
cpp/ql/lib/semmle/code/cpp/Type.qll
@@ -1369,6 +1369,8 @@ class ArrayType extends DerivedType {
1369
override predicate isDeeplyConst() { this.getBaseType().isDeeplyConst() } // No such thing as a const array type
1370
1371
override predicate isDeeplyConstBelow() { this.getBaseType().isDeeplyConst() }
1372
+
1373
+ predicate isVla() {type_is_vla(underlyingElement(this))}
1374
}
1375
1376
/**
cpp/ql/lib/semmlecode.cpp.dbscheme
@@ -2178,6 +2178,8 @@ variable_vla(
2178
int decl: @stmt_vla_decl ref
2179
);
2180
2181
+type_is_vla(unique int type_id: @type ref)
2182
2183
if_initialization(
2184
unique int if_stmt: @stmt_if ref,
2185
int init_id: @stmt ref
0 commit comments