CodeQL library for C/C++
Search

Predicate allocExpr

Holds if alloc is a use of malloc or new. kind is a string describing the type of the allocation.

Import path

import Critical.NewDelete
predicate allocExpr(Expr alloc, string kind)