Skip to content

Commit c382815

Browse files
authored
Merge branch 'main' into redsun82/swift
2 parents 59423c6 + 27e9c1b commit c382815

File tree

48 files changed

+11771
-1487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+11771
-1487
lines changed

.github/workflows/ruby-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ jobs:
140140
path: |
141141
${{ runner.temp }}/query-packs/*
142142
retention-days: 1
143+
include-hidden-files: true
143144

144145
package:
145146
runs-on: ubuntu-latest
@@ -176,6 +177,7 @@ jobs:
176177
name: codeql-ruby-pack
177178
path: ruby/codeql-ruby.zip
178179
retention-days: 1
180+
include-hidden-files: true
179181
- uses: actions/download-artifact@v3
180182
with:
181183
name: codeql-ruby-queries
@@ -193,6 +195,7 @@ jobs:
193195
name: codeql-ruby-bundle
194196
path: ruby/codeql-ruby-bundle.zip
195197
retention-days: 1
198+
include-hidden-files: true
196199

197200
test:
198201
defaults:

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ local_path_override(
1515
# see https://registry.bazel.build/ for a list of available packages
1616

1717
bazel_dep(name = "platforms", version = "0.0.10")
18-
bazel_dep(name = "rules_go", version = "0.49.0")
18+
bazel_dep(name = "rules_go", version = "0.50.0")
1919
bazel_dep(name = "rules_pkg", version = "0.10.1")
2020
bazel_dep(name = "rules_nodejs", version = "6.2.0-codeql.1")
2121
bazel_dep(name = "rules_python", version = "0.32.2")
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Approach: replace conversion expressions of kind 389 (= @c11_generic) by
3+
* conversion expressions of kind 12 (= @parexpr), i.e., a `ParenthesisExpr`,
4+
* and drop the relation which its child expressions, which are just syntactic
5+
* sugar. Parenthesis expressions are equally benign as C11 _Generic expressions,
6+
* and behave similarly in the context of the IR.
7+
*/
8+
9+
class Expr extends @expr {
10+
string toString() { none() }
11+
}
12+
13+
class Location extends @location {
14+
string toString() { none() }
15+
}
16+
17+
class ExprParent extends @exprparent {
18+
string toString() { none() }
19+
}
20+
21+
query predicate new_exprs(Expr expr, int new_kind, Location loc) {
22+
exists(int kind | exprs(expr, kind, loc) | if kind = 389 then new_kind = 12 else new_kind = kind)
23+
}
24+
25+
query predicate new_exprparents(Expr expr, int index, ExprParent expr_parent) {
26+
exprparents(expr, index, expr_parent) and
27+
(
28+
not expr_parent instanceof @expr
29+
or
30+
exists(int kind | exprs(expr_parent.(Expr), kind, _) | kind != 389)
31+
)
32+
}

0 commit comments

Comments
 (0)