mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Autoformat.
This commit is contained in:
@@ -1560,7 +1560,5 @@ module IR {
|
||||
* Gets the implicit dereference instruction for `e`, where `e` is a pointer used as the base
|
||||
* in a field/method access, element access, or slice expression.
|
||||
*/
|
||||
EvalImplicitDerefInstruction implicitDerefInstruction(Expr e) {
|
||||
result = MkImplicitDeref(e)
|
||||
}
|
||||
EvalImplicitDerefInstruction implicitDerefInstruction(Expr e) { result = MkImplicitDeref(e) }
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from DataFlow::ReadNode r, DataFlow::Node base, DataFlow::Node index
|
||||
where r.readsElement(base, index)
|
||||
select r, base, index
|
||||
select r, base, index
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from DataFlow::ReadNode r, DataFlow::Node base, Field f
|
||||
where r.readsField(base, f)
|
||||
select r, base, f
|
||||
select r, base, f
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from DataFlow::ReadNode r, DataFlow::Node base, Method m
|
||||
where r.readsMethod(base, m)
|
||||
select r, base, m
|
||||
select r, base, m
|
||||
|
||||
@@ -18,4 +18,4 @@ func test(x t, xs [10]int, ps *[10]int) {
|
||||
x.bump()
|
||||
xs[0] = xs[1]
|
||||
ps[0] = ps[1]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from Write w, DataFlow::Node base, DataFlow::Node index, DataFlow::Node rhs
|
||||
where w.writesElement(base, index, rhs)
|
||||
select w, base, index, rhs
|
||||
select w, base, index, rhs
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from Write w, DataFlow::Node base, Field f, DataFlow::Node rhs
|
||||
where w.writesField(base, f, rhs)
|
||||
select w, base, f, rhs
|
||||
select w, base, f, rhs
|
||||
|
||||
Reference in New Issue
Block a user