Files
codeql/cpp/ql/test/library-tests/depends_initializers/InitializerCFG.ql
2018-08-02 17:53:23 +01:00

15 lines
226 B
Plaintext

import cpp
Function getCFGFunction(Initializer i) {
result = i.getASuccessor*()
}
from Initializer i, string f
where
if exists(getCFGFunction(i)) then (
f = getCFGFunction(i).toString()
) else (
f = ""
)
select i, f