mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C++: add Class::isStandardLayout()
This commit is contained in:
@@ -418,6 +418,12 @@ class Class extends UserType {
|
||||
*/
|
||||
predicate isPOD() { is_pod_class(underlyingElement(this)) }
|
||||
|
||||
/**
|
||||
* Holds if this class is a standard-layout class [N4140 9(7)]. Also holds
|
||||
* for structs in C programs.
|
||||
*/
|
||||
predicate isStandardLayout() { is_standard_layout_class(underlyingElement(this)) }
|
||||
|
||||
/**
|
||||
* Holds if this class is abstract, in other words whether it declares one
|
||||
* or more pure virtual member functions.
|
||||
|
||||
@@ -691,6 +691,7 @@ usertype_uuid(
|
||||
);
|
||||
|
||||
is_pod_class(unique int id: @usertype ref);
|
||||
is_standard_layout_class(unique int id: @usertype ref);
|
||||
|
||||
is_complete(unique int id: @usertype ref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user