Skip to content

Commit 8c07e95

Browse files
committed
Rename mayCapture to mayUpdateCapturedVariable
1 parent f04c8cc commit 8c07e95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/ql/lib/semmle/go/dataflow/SsaImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private module Internal {
5454
* modeling updates to captured variable `v`.
5555
*/
5656
cached
57-
predicate mayCapture(BasicBlock bb, int i, SsaSourceVariable v) {
57+
predicate mayUpdateCapturedVariable(BasicBlock bb, int i, SsaSourceVariable v) {
5858
exists(FuncDef capturingContainer, FuncDef declContainer |
5959
// capture initial value of variable declared in enclosing scope
6060
readsCapturedVar(capturingContainer, v, declContainer) and
@@ -91,7 +91,7 @@ private module Internal {
9191
predicate variableWrite(BasicBlock bb, int i, SourceVariable v, boolean certain) {
9292
defAt(bb, i, v) and certain = true
9393
or
94-
mayCapture(bb, i, v) and certain = false
94+
mayUpdateCapturedVariable(bb, i, v) and certain = false
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)