C++: Use [,] more in general.

This commit is contained in:
Geoffrey White
2020-12-03 18:50:43 +00:00
parent 2a4fba0ff9
commit 13d9d5dc45
20 changed files with 163 additions and 520 deletions

View File

@@ -59,14 +59,10 @@ class Options extends string {
predicate exits(Function f) {
f.getAnAttribute().hasName("noreturn")
or
exists(string name | f.hasGlobalOrStdName(name) |
name = "exit" or
name = "_exit" or
name = "abort" or
name = "__assert_fail" or
name = "longjmp" or
name = "__builtin_unreachable"
)
f
.hasGlobalOrStdName([
"exit", "_exit", "abort", "__assert_fail", "longjmp", "__builtin_unreachable"
])
or
CustomOptions::exits(f) // old Options.qll
}