Skip to content

Commit d14b993

Browse files
committed
C++: Replace 'Argument -1 indirection' with 'This indirection'.
1 parent 2a9f7a9 commit d14b993

File tree

2 files changed

+67
-63
lines changed

2 files changed

+67
-63
lines changed

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ private class SideEffectArgumentNode extends ArgumentNode {
5252
pos = getArgumentPosOfSideEffect(read.getIndex())
5353
}
5454

55-
override string toString() { result = "Argument " + read.getIndex() + " indirection" }
55+
override string toString() {
56+
if read.getIndex() = -1
57+
then result = "This indirection"
58+
else result = "Argument " + read.getIndex() + " indirection"
59+
}
5660
}
5761

5862
private newtype TReturnKind =

0 commit comments

Comments
 (0)