mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
C++: Autoformat.
This commit is contained in:
@@ -101,15 +101,13 @@ predicate callReaches(Call call, ControlFlowNode successor) {
|
||||
// To avoid many false alarms like `static int a = 1;`
|
||||
predicate initialisedAtDeclaration(GlobalVariable v) {
|
||||
exists(VariableDeclarationEntry vde |
|
||||
vde = v.getDefinition()
|
||||
and vde.isDefinition()
|
||||
vde = v.getDefinition() and
|
||||
vde.isDefinition()
|
||||
)
|
||||
}
|
||||
|
||||
// No need to initialize those variables
|
||||
predicate isStdlibVariable(GlobalVariable v) {
|
||||
v.getName() = ["stdin", "stdout", "stderr"]
|
||||
}
|
||||
predicate isStdlibVariable(GlobalVariable v) { v.getName() = ["stdin", "stdout", "stderr"] }
|
||||
|
||||
from GlobalVariable v, Function f
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user