Skip to content

Commit 915042a

Browse files
committed
Minor cleanup and sync files.
1 parent 783d560 commit 915042a

File tree

6 files changed

+48
-60
lines changed

6 files changed

+48
-60
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,14 @@ module Public {
170170
private string getComponent(SummaryComponent sc) {
171171
result = getComponentSpecific(sc)
172172
or
173-
(
174-
exists(ArgumentPosition pos |
175-
sc = TParameterSummaryComponent(pos) and
176-
result = "Parameter[" + getArgumentPosition(pos) + "]"
177-
)
178-
or
179-
exists(ParameterPosition pos |
180-
sc = TArgumentSummaryComponent(pos) and
181-
result = "Argument[" + getParameterPosition(pos) + "]"
182-
)
173+
exists(ArgumentPosition pos |
174+
sc = TParameterSummaryComponent(pos) and
175+
result = "Parameter[" + getArgumentPosition(pos) + "]"
176+
)
177+
or
178+
exists(ParameterPosition pos |
179+
sc = TArgumentSummaryComponent(pos) and
180+
result = "Argument[" + getParameterPosition(pos) + "]"
183181
)
184182
or
185183
sc = TReturnSummaryComponent(getReturnValueKind()) and result = "ReturnValue"

0 commit comments

Comments
 (0)