Skip to content

Commit 52eef7c

Browse files
committed
C++: Fix typo in test
1 parent d027e0c commit 52eef7c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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`, `__noreturn__`, `_Noreturn`, or
58-
* `_noreturn` attribute or `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__", "_Noreturn", "_noreturn"])
61+
f.getAnAttribute().hasName(["noreturn", "__noreturn__", "_Noreturn"])
6262
or
6363
f.getASpecifier().hasName("noreturn")
6464
or

cpp/ql/test/query-tests/jsf/4.13 Functions/AV Rule 114/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int f23() {
129129
f22(); // GOOD
130130
}
131131

132-
[[___noreturn__]] void f24();
132+
[[__noreturn__]] void f24();
133133

134134
int f25() {
135135
f24(); // GOOD

0 commit comments

Comments
 (0)