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

20 lines
320 B
Plaintext

import cpp
import testoptions
from FunctionCall call, string s, Expr arg
where
(
s = "lockCall" and
lockCall(arg, call)
) or (
s = "mustlockCall" and
mustlockCall(arg, call)
) or (
s = "trylockCall" and
trylockCall(arg, call)
) or (
s = "unlockCall" and
unlockCall(arg, call)
)
select call, s, arg