We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a7bf2a + b3d18ef commit 3493c93Copy full SHA for 3493c93
cpp/ql/src/jsf/4.10 Classes/AV Rule 82.ql
@@ -45,6 +45,16 @@ predicate dereferenceThis(Expr e) {
45
or
46
// `*this = ...` (where `=` is not overloaded, so an `AssignExpr`)
47
dereferenceThis(e.(AssignExpr).getLValue())
48
+ or
49
+ // `e ? ... : ... `
50
+ exists(ConditionalExpr cond |
51
+ cond = e and
52
+ dereferenceThis(cond.getThen()) and
53
+ dereferenceThis(cond.getElse())
54
+ )
55
56
+ // `..., ... `
57
+ dereferenceThis(e.(CommaExpr).getRightOperand())
58
}
59
60
/**
0 commit comments