Skip to content

Commit 2961749

Browse files
committed
Merge branch 'main' into redsun82/swift-ios
2 parents 8c54f51 + d8ec6dd commit 2961749

File tree

85 files changed

+3206
-1785
lines changed

Some content is hidden

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

85 files changed

+3206
-1785
lines changed

Cargo.lock

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

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ use_repo(
125125
"vendor__serde_with-3.12.0",
126126
"vendor__stderrlog-0.6.0",
127127
"vendor__syn-2.0.96",
128+
"vendor__toml-0.8.19",
128129
"vendor__tracing-0.1.41",
129130
"vendor__tracing-subscriber-0.3.19",
130131
"vendor__tree-sitter-0.24.6",

cpp/ql/lib/DefaultOptions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ class Options extends string {
5454
*
5555
* By default, this holds for `exit`, `_exit`, `_Exit`, `abort`,
5656
* `__assert_fail`, `longjmp`, `__builtin_unreachable` and any
57-
* function with a `noreturn` or `__noreturn__` attribute or
58-
* `noreturn` specifier.
57+
* function with a `noreturn`, `__noreturn__`, or `_Noreturn`
58+
* attribute or `noreturn` specifier.
5959
*/
6060
predicate exits(Function f) {
61-
f.getAnAttribute().hasName(["noreturn", "__noreturn__"])
61+
f.getAnAttribute().hasName(["noreturn", "__noreturn__", "_Noreturn"])
6262
or
6363
f.getASpecifier().hasName("noreturn")
6464
or
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* `DefaultOptions::exits` now holds for C23 functions with the `_Noreturn` or `___Noreturn__` attribute.

0 commit comments

Comments
 (0)