mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: Fix typo in test
This commit is contained in:
@@ -54,11 +54,11 @@ class Options extends string {
|
||||
*
|
||||
* By default, this holds for `exit`, `_exit`, `_Exit`, `abort`,
|
||||
* `__assert_fail`, `longjmp`, `__builtin_unreachable` and any
|
||||
* function with a `noreturn`, `__noreturn__`, `_Noreturn`, or
|
||||
* `_noreturn` attribute or `noreturn` specifier.
|
||||
* function with a `noreturn`, `__noreturn__`, or `_Noreturn`
|
||||
* attribute or `noreturn` specifier.
|
||||
*/
|
||||
predicate exits(Function f) {
|
||||
f.getAnAttribute().hasName(["noreturn", "__noreturn__", "_Noreturn", "_noreturn"])
|
||||
f.getAnAttribute().hasName(["noreturn", "__noreturn__", "_Noreturn"])
|
||||
or
|
||||
f.getASpecifier().hasName("noreturn")
|
||||
or
|
||||
|
||||
@@ -129,7 +129,7 @@ int f23() {
|
||||
f22(); // GOOD
|
||||
}
|
||||
|
||||
[[___noreturn__]] void f24();
|
||||
[[__noreturn__]] void f24();
|
||||
|
||||
int f25() {
|
||||
f24(); // GOOD
|
||||
|
||||
Reference in New Issue
Block a user