Skip to content

Commit a33436a

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update hasProvenance
1 parent 3da2fb9 commit a33436a

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module Public {
249249
* Holds if the summary has the given provenance where `true` is
250250
* `generated` and `false` is `manual`.
251251
*/
252-
predicate hasProvenance(boolean generated) { summaryElement(this, _, _, _, generated) }
252+
predicate hasProvenance(boolean generated) { none() }
253253
}
254254

255255
/** A callable where there is no flow via the callable. */
@@ -1018,6 +1018,10 @@ module Private {
10181018
}
10191019

10201020
override predicate isAutoGenerated() { this.relevantSummaryElementGenerated(_, _, _) }
1021+
1022+
override predicate hasProvenance(boolean generated) {
1023+
summaryElement(this, _, _, _, generated)
1024+
}
10211025
}
10221026

10231027
/** Holds if component `c` of specification `spec` cannot be parsed. */

0 commit comments

Comments
 (0)