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

Predicate mustlockCall

Holds if call is a call that always locks its argument arg.

Import path

import cpp
predicate mustlockCall(Expr arg, FunctionCall call)