CodeQL library for C/C++
Search

Member predicate NewOrNewArrayExpr::getAllocatedType

Gets the type that is being allocated.

For example, for new int the result is int. For new int[5] the result is int[5].

Type getAllocatedType()