CodeQL library for C/C++
codeql/cpp-all 0.4.5 (changelog, source)
Search

Predicate lockCall

Holds if call is a call that locks or tries to lock its argument arg.

Import path

import cpp
predicate lockCall(Expr arg, FunctionCall call)