Skip to content

Commit 7e80a57

Browse files
committed
C++: Make ql-for-ql happy.
1 parent fcd9dd0 commit 7e80a57

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cpp/ql/src/Likely Bugs/OO/UnsafeUseOfThis.ql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class UnsafeUseOfThisConfig extends MustFlowConfiguration {
2727
override predicate isSink(Operand sink) { isSink(sink, _) }
2828
}
2929

30-
/** Holds if `instr` is a `this` pointer used by the call instruction `call`. */
30+
/** Holds if `sink` is a `this` pointer used by the call instruction `call`. */
3131
predicate isSink(Operand sink, CallInstruction call) {
3232
exists(PureVirtualFunction func |
3333
call.getStaticCallTarget() = func and
@@ -37,7 +37,12 @@ predicate isSink(Operand sink, CallInstruction call) {
3737
)
3838
}
3939

40-
/** Holds if `init` initializes the `this` pointer in class `c`. */
40+
/**
41+
* Holds if `source` initializes the `this` pointer in class `c`.
42+
*
43+
* The string `msg` describes whether the enclosing function is a
44+
* constructor or destructor.
45+
*/
4146
predicate isSource(InitializeParameterInstruction source, string msg, Class c) {
4247
(
4348
exists(Constructor func |

0 commit comments

Comments
 (0)