Skip to content

Commit bf47574

Browse files
committed
Merge branch 'main' into docsforautofix
2 parents 0344381 + 9794269 commit bf47574

File tree

131 files changed

+14713
-3559
lines changed

Some content is hidden

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

131 files changed

+14713
-3559
lines changed

.github/workflows/compile-queries.yml

-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
key: all-queries
3030
- name: check formatting
3131
run: find shared */ql -type f \( -name "*.qll" -o -name "*.ql" \) -print0 | xargs -0 -n 3000 -P 10 codeql query format -q --check-only
32-
- name: Omit DatabaseQualityDiagnostics.ql from compile checking # Remove me once CodeQL 2.18.0 is released!
33-
run: mv java/ql/src/Telemetry/DatabaseQualityDiagnostics.ql{,.hidden}
3432
- name: compile queries - check-only
3533
# run with --check-only if running in a PR (github.sha != main)
3634
if : ${{ github.event_name == 'pull_request' }}
@@ -41,6 +39,3 @@ jobs:
4139
if : ${{ github.event_name != 'pull_request' }}
4240
shell: bash
4341
run: codeql query compile -q -j0 */ql/{src,examples} --keep-going --warnings=error --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" --compilation-cache-size=500
44-
- name: Restore DatabaseQualityDiagnostics.ql after compile checking # Remove me once CodeQL 2.18.0 is released
45-
run: mv java/ql/src/Telemetry/DatabaseQualityDiagnostics.ql{.hidden,}
46-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Expr extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_expr {
6+
string toString() { none() }
7+
}
8+
9+
predicate isExprWithNewBuiltin(Expr expr) {
10+
exists(int kind | exprs(expr, kind, _) | 364 <= kind and kind <= 384)
11+
}
12+
13+
from Expr expr, int kind, int kind_new, Location location
14+
where
15+
exprs(expr, kind, location) and
16+
if isExprWithNewBuiltin(expr) then kind_new = 1 else kind_new = kind
17+
select expr, kind_new, location

0 commit comments

Comments
 (0)