CodeQL library for C/C++
Search

Predicate allocationCall

A call to a library routine that allocates memory.

DEPRECATED: Use AllocationExpr instead (this also includes new expressions).

Import path

import cpp
predicate allocationCall(FunctionCall fc)