CodeQL library for C/C++
codeql/cpp-all 0.6.0 ( 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 ( )