Merge pull request #15015 from jketema/exit

C++: Add `_Exit` to the list of exiting (non-returning) functions
This commit is contained in:
Jeroen Ketema
2023-12-06 10:07:55 +01:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ class Options extends string {
f.getASpecifier().hasName("noreturn")
or
f.hasGlobalOrStdName([
"exit", "_exit", "abort", "__assert_fail", "longjmp", "__builtin_unreachable"
"exit", "_exit", "_Exit", "abort", "__assert_fail", "longjmp", "__builtin_unreachable"
])
or
CustomOptions::exits(f) // old Options.qll