-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into promote-unsigned-difference-expression-compa…
…red-zero-to-code-scanning
- Loading branch information
Showing
249 changed files
with
17,377 additions
and
6,447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
cpp/downgrades/3d35dd6b50edfc540c14c6757e0c7b3c5b7b04dd/exprs.ql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class Expr extends @expr { | ||
string toString() { none() } | ||
} | ||
|
||
class Location extends @location_expr { | ||
string toString() { none() } | ||
} | ||
|
||
predicate isExprWithNewBuiltin(Expr expr) { | ||
exists(int kind | exprs(expr, kind, _) | 364 <= kind and kind <= 384) | ||
} | ||
|
||
from Expr expr, int kind, int kind_new, Location location | ||
where | ||
exprs(expr, kind, location) and | ||
if isExprWithNewBuiltin(expr) then kind_new = 1 else kind_new = kind | ||
select expr, kind_new, location |
Oops, something went wrong.