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

Member predicate FunctionWithWrappers::wrapperFunction

Whether ‘func’ is a (possibly nested) wrapper function that feeds a parameter at the given index through to an interesting parameter of ‘this’ function.

If there exists a call chain with depth at most 4, the ‘cause’ reports the smallest call chain. Otherwise, the ‘cause’ merely reports the name of ‘this’ interesting function and its relevant parameter at the end of the call chain.

If there is more than one possible ‘cause’, a unique one is picked (by lexicographic order).

predicate wrapperFunction(Function func, int paramIndex, string cause)