Skip to content

Commit 37a1c48

Browse files
committed
CPP: Optimize AV Rule 71.ql.
1 parent bf68016 commit 37a1c48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/jsf/4.10 Classes/AV Rule 71.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ predicate memberDirectlyInitialisesVariable(MemberFunction mf, Class c, MemberVa
5555
predicate memberInitialisesVariable(MemberFunction mf, Class c, MemberVariable mv) {
5656
memberDirectlyInitialisesVariable(mf, c, mv) or
5757
exists(MemberFunction mf2 |
58+
memberDirectlyInitialisesVariable(_, c, mv) and // (optimizer hint)
5859
memberInitialisesVariable(mf2, c, mv) and
5960
mf.getDeclaringType() = c and
6061
mf.calls(mf2)

0 commit comments

Comments
 (0)