Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 8596a99

Browse files
authored
Merge pull request #156 from max-schaefer/update-data-flow
Data flow: Remove deprecated predicates.
2 parents 63fddfc + a59e754 commit 8596a99

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,10 @@ build/testdb/go.dbscheme: upgrades/initial/go.dbscheme
109109
rm -rf build/testdb
110110
echo >build/empty.trap
111111
codeql dataset import -S upgrades/initial/go.dbscheme build/testdb build/empty.trap
112+
113+
.PHONY: sync-dataflow-libraries
114+
sync-dataflow-libraries:
115+
for f in DataFlowImpl.qll DataFlowImplCommon.qll tainttracking1/TaintTrackingImpl.qll;\
116+
do\
117+
curl -s -o ./ql/src/semmle/go/dataflow/internal/$$f https://raw.githubusercontent.com/github/codeql/master/java/ql/src/semmle/code/java/dataflow/internal/$$f;\
118+
done

ql/src/semmle/go/dataflow/internal/DataFlowImpl.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ abstract class Configuration extends string {
6666
*/
6767
predicate isBarrier(Node node) { none() }
6868

69-
/** DEPRECATED: override `isBarrierIn` and `isBarrierOut` instead. */
70-
deprecated predicate isBarrierEdge(Node node1, Node node2) { none() }
71-
7269
/** Holds if data flow into `node` is prohibited. */
7370
predicate isBarrierIn(Node node) { none() }
7471

ql/src/semmle/go/dataflow/internal/tainttracking1/TaintTrackingImpl.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ abstract class Configuration extends DataFlow::Configuration {
7979
defaultTaintBarrier(node)
8080
}
8181

82-
/** DEPRECATED: override `isSanitizerIn` and `isSanitizerOut` instead. */
83-
deprecated predicate isSanitizerEdge(DataFlow::Node node1, DataFlow::Node node2) { none() }
84-
85-
deprecated final override predicate isBarrierEdge(DataFlow::Node node1, DataFlow::Node node2) {
86-
isSanitizerEdge(node1, node2)
87-
}
88-
8982
/** Holds if data flow into `node` is prohibited. */
9083
predicate isSanitizerIn(DataFlow::Node node) { none() }
9184

0 commit comments

Comments
 (0)