Skip to content

Commit 0beea9f

Browse files
committed
Fix typos
1 parent 6f518c1 commit 0beea9f

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,22 @@ module Private {
752752

753753
/**
754754
* Holds if `p` can reach `n` in a summarized callable, using only value-preserving
755-
* local steps. `clearsOrExcepts` records whether any node on the path from `p` to
755+
* local steps. `clearsOrExpects` records whether any node on the path from `p` to
756756
* `n` either clears or expects contents.
757757
*/
758-
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExcepts) {
758+
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExpects) {
759759
viableParam(_, _, _, p) and
760760
n = p and
761-
clearsOrExcepts = false
761+
clearsOrExpects = false
762762
or
763-
exists(Node mid, boolean clearsOrExceptsMid |
764-
paramReachesLocal(p, mid, clearsOrExceptsMid) and
763+
exists(Node mid, boolean clearsOrExpectsMid |
764+
paramReachesLocal(p, mid, clearsOrExpectsMid) and
765765
summaryLocalStep(mid, n, true) and
766766
if
767767
summaryClearsContent(n, _) or
768768
summaryExpectsContent(n, _)
769-
then clearsOrExcepts = true
770-
else clearsOrExcepts = clearsOrExceptsMid
769+
then clearsOrExpects = true
770+
else clearsOrExpects = clearsOrExpectsMid
771771
)
772772
}
773773

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,22 @@ module Private {
752752

753753
/**
754754
* Holds if `p` can reach `n` in a summarized callable, using only value-preserving
755-
* local steps. `clearsOrExcepts` records whether any node on the path from `p` to
755+
* local steps. `clearsOrExpects` records whether any node on the path from `p` to
756756
* `n` either clears or expects contents.
757757
*/
758-
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExcepts) {
758+
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExpects) {
759759
viableParam(_, _, _, p) and
760760
n = p and
761-
clearsOrExcepts = false
761+
clearsOrExpects = false
762762
or
763-
exists(Node mid, boolean clearsOrExceptsMid |
764-
paramReachesLocal(p, mid, clearsOrExceptsMid) and
763+
exists(Node mid, boolean clearsOrExpectsMid |
764+
paramReachesLocal(p, mid, clearsOrExpectsMid) and
765765
summaryLocalStep(mid, n, true) and
766766
if
767767
summaryClearsContent(n, _) or
768768
summaryExpectsContent(n, _)
769-
then clearsOrExcepts = true
770-
else clearsOrExcepts = clearsOrExceptsMid
769+
then clearsOrExpects = true
770+
else clearsOrExpects = clearsOrExpectsMid
771771
)
772772
}
773773

python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,22 @@ module Private {
752752

753753
/**
754754
* Holds if `p` can reach `n` in a summarized callable, using only value-preserving
755-
* local steps. `clearsOrExcepts` records whether any node on the path from `p` to
755+
* local steps. `clearsOrExpects` records whether any node on the path from `p` to
756756
* `n` either clears or expects contents.
757757
*/
758-
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExcepts) {
758+
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExpects) {
759759
viableParam(_, _, _, p) and
760760
n = p and
761-
clearsOrExcepts = false
761+
clearsOrExpects = false
762762
or
763-
exists(Node mid, boolean clearsOrExceptsMid |
764-
paramReachesLocal(p, mid, clearsOrExceptsMid) and
763+
exists(Node mid, boolean clearsOrExpectsMid |
764+
paramReachesLocal(p, mid, clearsOrExpectsMid) and
765765
summaryLocalStep(mid, n, true) and
766766
if
767767
summaryClearsContent(n, _) or
768768
summaryExpectsContent(n, _)
769-
then clearsOrExcepts = true
770-
else clearsOrExcepts = clearsOrExceptsMid
769+
then clearsOrExpects = true
770+
else clearsOrExpects = clearsOrExpectsMid
771771
)
772772
}
773773

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,22 @@ module Private {
752752

753753
/**
754754
* Holds if `p` can reach `n` in a summarized callable, using only value-preserving
755-
* local steps. `clearsOrExcepts` records whether any node on the path from `p` to
755+
* local steps. `clearsOrExpects` records whether any node on the path from `p` to
756756
* `n` either clears or expects contents.
757757
*/
758-
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExcepts) {
758+
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExpects) {
759759
viableParam(_, _, _, p) and
760760
n = p and
761-
clearsOrExcepts = false
761+
clearsOrExpects = false
762762
or
763-
exists(Node mid, boolean clearsOrExceptsMid |
764-
paramReachesLocal(p, mid, clearsOrExceptsMid) and
763+
exists(Node mid, boolean clearsOrExpectsMid |
764+
paramReachesLocal(p, mid, clearsOrExpectsMid) and
765765
summaryLocalStep(mid, n, true) and
766766
if
767767
summaryClearsContent(n, _) or
768768
summaryExpectsContent(n, _)
769-
then clearsOrExcepts = true
770-
else clearsOrExcepts = clearsOrExceptsMid
769+
then clearsOrExpects = true
770+
else clearsOrExpects = clearsOrExpectsMid
771771
)
772772
}
773773

swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,22 @@ module Private {
752752

753753
/**
754754
* Holds if `p` can reach `n` in a summarized callable, using only value-preserving
755-
* local steps. `clearsOrExcepts` records whether any node on the path from `p` to
755+
* local steps. `clearsOrExpects` records whether any node on the path from `p` to
756756
* `n` either clears or expects contents.
757757
*/
758-
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExcepts) {
758+
private predicate paramReachesLocal(ParamNode p, Node n, boolean clearsOrExpects) {
759759
viableParam(_, _, _, p) and
760760
n = p and
761-
clearsOrExcepts = false
761+
clearsOrExpects = false
762762
or
763-
exists(Node mid, boolean clearsOrExceptsMid |
764-
paramReachesLocal(p, mid, clearsOrExceptsMid) and
763+
exists(Node mid, boolean clearsOrExpectsMid |
764+
paramReachesLocal(p, mid, clearsOrExpectsMid) and
765765
summaryLocalStep(mid, n, true) and
766766
if
767767
summaryClearsContent(n, _) or
768768
summaryExpectsContent(n, _)
769-
then clearsOrExcepts = true
770-
else clearsOrExcepts = clearsOrExceptsMid
769+
then clearsOrExpects = true
770+
else clearsOrExpects = clearsOrExpectsMid
771771
)
772772
}
773773

0 commit comments

Comments
 (0)