Skip to content

Commit 261ba8e

Browse files
committed
C++: Add QLDoc to 'isDereference'.
1 parent b092da4 commit 261ba8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@ private module IteratorIndirections {
320320
}
321321
}
322322

323+
/**
324+
* Holds if `deref` is the result of loading the value at the address
325+
* represented by `address`.
326+
*
327+
* If `additional = true` then the dereference comes from an `Indirection`
328+
* class (such as a call to an iterator's `operator*`), and if
329+
* `additional = false` the dereference is a `LoadInstruction`.
330+
*/
323331
predicate isDereference(Instruction deref, Operand address, boolean additional) {
324332
any(Indirection ind).isAdditionalDereference(deref, address) and
325333
additional = true

0 commit comments

Comments
 (0)