Skip to content

Commit 9d2dd78

Browse files
committed
Merge remote-tracking branch 'github/main' into kaspersv/overlay-java-annotations
2 parents 81b677a + ae36f94 commit 9d2dd78

File tree

2,453 files changed

+49157
-25930
lines changed

Some content is hidden

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

2,453 files changed

+49157
-25930
lines changed

.github/workflows/check-change-note.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
- "shared/**/*.qll"
1717
- "!**/experimental/**"
1818
- "!ql/**"
19-
- "!rust/**"
2019
- ".github/workflows/check-change-note.yml"
2120

2221
jobs:

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/ql/lib/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.4.12
2+
3+
### Minor Analysis Improvements
4+
5+
* Fixed performance issues in the parsing of Bash scripts in workflow files,
6+
which led to out-of-disk errors when analysing certain workflow files with
7+
complex interpolations of shell commands or quoted strings.
8+
19
## 0.4.11
210

311
No user-facing changes.

actions/ql/lib/change-notes/2025-06-09-bash-parsing-performance.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 0.4.12
2+
3+
### Minor Analysis Improvements
4+
5+
* Fixed performance issues in the parsing of Bash scripts in workflow files,
6+
which led to out-of-disk errors when analysing certain workflow files with
7+
complex interpolations of shell commands or quoted strings.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.4.11
2+
lastReleaseVersion: 0.4.12

actions/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/actions-all
2-
version: 0.4.12-dev
2+
version: 0.4.13-dev
33
library: true
44
warnOnImplicitThis: true
55
dependencies:

actions/ql/src/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.4
2+
3+
No user-facing changes.
4+
15
## 0.6.3
26

37
No user-facing changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.6.4
2+
3+
No user-facing changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.6.3
2+
lastReleaseVersion: 0.6.4

actions/ql/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/actions-queries
2-
version: 0.6.4-dev
2+
version: 0.6.5-dev
33
library: false
44
warnOnImplicitThis: true
55
groups: [actions, queries]

config/add-overlay-annotations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
#!/usr/bin/python3
1818
import sys
1919
import os
20+
import re
2021
from difflib import context_diff
2122

23+
OVERLAY_PATTERN = re.compile(r'overlay\[[a-zA-Z?_-]+\]')
2224

2325
def has_overlay_annotations(lines):
2426
'''
2527
Check whether the given lines contain any overlay[...] annotations.
2628
'''
27-
overlays = ["local", "local?", "global", "caller", "caller?"]
28-
annotations = [f"overlay[{t}]" for t in overlays]
29-
return any(ann in line for ann in annotations for line in lines)
29+
return any(OVERLAY_PATTERN.search(line) for line in lines)
3030

3131

3232
def is_line_comment(line):

config/dbscheme-fragments.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"/*- Diagnostic messages -*/",
1212
"/*- Diagnostic messages: severity -*/",
1313
"/*- Source location prefix -*/",
14+
"/*- Database metadata -*/",
1415
"/*- Lines of code -*/",
1516
"/*- Configuration files with key value pairs -*/",
1617
"/*- YAML -*/",
@@ -31,4 +32,4 @@
3132
"/*- Python dbscheme -*/",
3233
"/*- Empty location -*/"
3334
]
34-
}
35+
}

config/opcode-qldoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
start_qldoc_re = re.compile(r'^\s*/\*\*') # Start of a QLDoc comment
99
end_qldoc_re = re.compile(r'\*/\s*$') # End of a QLDoc comment
1010
blank_qldoc_line_re = re.compile(r'^\s*\*\s*$') # A line in a QLDoc comment with only the '*'
11-
instruction_class_re = re.compile(r'^class (?P<name>[A-aa-z0-9]+)Instruction\s') # Declaration of an `Instruction` class
12-
opcode_base_class_re = re.compile(r'^abstract class (?P<name>[A-aa-z0-9]+)Opcode\s') # Declaration of an `Opcode` base class
13-
opcode_class_re = re.compile(r'^ class (?P<name>[A-aa-z0-9]+)\s') # Declaration of an `Opcode` class
11+
instruction_class_re = re.compile(r'^class (?P<name>[A-Za-z0-9]+)Instruction\s') # Declaration of an `Instruction` class
12+
opcode_base_class_re = re.compile(r'^abstract class (?P<name>[A-Za-z0-9]+)Opcode\s') # Declaration of an `Opcode` base class
13+
opcode_class_re = re.compile(r'^ class (?P<name>[A-Za-z0-9]+)\s') # Declaration of an `Opcode` class
1414

1515
script_dir = path.realpath(path.dirname(__file__))
1616
instruction_path = path.realpath(path.join(script_dir, '../cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll'))
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class BuiltinType extends @builtintype {
2+
string toString() { none() }
3+
}
4+
5+
from BuiltinType type, string name, int kind, int kind_new, int size, int sign, int alignment
6+
where
7+
builtintypes(type, name, kind, size, sign, alignment) and
8+
if
9+
type instanceof @complex_fp16 or
10+
type instanceof @complex_std_bfloat16 or
11+
type instanceof @complex_std_float16
12+
then kind_new = 2
13+
else kind_new = kind
14+
select type, name, kind_new, size, sign, alignment

0 commit comments

Comments
 (0)