mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
C++: Add _Exit to the list of exiting (non-returning) functions
This commit is contained in:
@@ -62,7 +62,7 @@ class Options extends string {
|
|||||||
f.getASpecifier().hasName("noreturn")
|
f.getASpecifier().hasName("noreturn")
|
||||||
or
|
or
|
||||||
f.hasGlobalOrStdName([
|
f.hasGlobalOrStdName([
|
||||||
"exit", "_exit", "abort", "__assert_fail", "longjmp", "__builtin_unreachable"
|
"exit", "_exit", "_Exit", "abort", "__assert_fail", "longjmp", "__builtin_unreachable"
|
||||||
])
|
])
|
||||||
or
|
or
|
||||||
CustomOptions::exits(f) // old Options.qll
|
CustomOptions::exits(f) // old Options.qll
|
||||||
|
|||||||
Reference in New Issue
Block a user