Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 440d64d commit e5b9dcaCopy full SHA for e5b9dca
2 files changed
cpp/ql/src/semmle/code/cpp/Class.qll
@@ -418,6 +418,12 @@ class Class extends UserType {
418
*/
419
predicate isPOD() { is_pod_class(underlyingElement(this)) }
420
421
+ /**
422
+ * Holds if this class is a standard-layout class [N4140 9(7)]. Also holds
423
+ * for structs in C programs.
424
+ */
425
+ predicate isStandardLayout() { is_standard_layout_class(underlyingElement(this)) }
426
+
427
/**
428
* Holds if this class is abstract, in other words whether it declares one
429
* or more pure virtual member functions.
cpp/ql/src/semmlecode.cpp.dbscheme
@@ -691,6 +691,7 @@ usertype_uuid(
691
);
692
693
is_pod_class(unique int id: @usertype ref);
694
+is_standard_layout_class(unique int id: @usertype ref);
695
696
is_complete(unique int id: @usertype ref);
697
0 commit comments