CodeQL library for C/C++
codeql/cpp-all 2.1.1 (changelog, source)
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()