mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Add upgrade- and downgrade scripts for unsigned right shift operators.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Expression extends @expr {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class TypeOrRef extends @type_or_ref {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from Expression e, int k, int kind, TypeOrRef t
|
||||
where
|
||||
expressions(e, k, t) and
|
||||
if k = [133, 134] then kind = 106 else kind = k
|
||||
select e, kind, t
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
description: Remove unsigned right shift and unsigned right shift assignment expression kinds.
|
||||
compatibility: backwards
|
||||
expressions.rel: run expressions.qlo
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
description: Add unsigned right shift and unsigned right shift assignment expression kinds.
|
||||
compatibility: backwards
|
||||
Reference in New Issue
Block a user