Fix AV Rule 76

This commit is contained in:
JarLob
2022-11-02 22:50:25 +01:00
parent 46631d6eaf
commit 3317223e19
4 changed files with 103 additions and 3 deletions

View File

@@ -38,9 +38,9 @@ predicate hasNontrivialDestructor(Class c) {
from Class c
where
(hasPointerMember(c) or hasNontrivialDestructor(c)) and
not (
c.getAMemberFunction() instanceof CopyConstructor and
c.getAMemberFunction() instanceof CopyAssignmentOperator
(
c.hasImplicitCopyAssignmentOperator() or
c.hasImplicitCopyConstructor()
) and
not c instanceof Struct
select c,