mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
C++: Remove useUsePair.
This commit is contained in:
@@ -37,15 +37,6 @@ predicate isGuarded(SubExpr sub, Expr left, Expr right) {
|
||||
predicate exprIsSubLeftOrLess(SubExpr sub, Expr e) {
|
||||
e = sub.getLeftOperand()
|
||||
or
|
||||
exists(Expr other |
|
||||
// use-use
|
||||
exprIsSubLeftOrLess(sub, other) and
|
||||
(
|
||||
useUsePair(_, other, e) or
|
||||
useUsePair(_, e, other)
|
||||
)
|
||||
)
|
||||
or
|
||||
exists(Expr other |
|
||||
// dataflow
|
||||
exprIsSubLeftOrLess(sub, other) and
|
||||
|
||||
Reference in New Issue
Block a user