Class CppType
The C++ type of an IR entity.
This cannot just be Type for a couple reasons:
- Some types needed by the IR might not exist in the database (e.g.
RoutineTypes for functions that are always called directly) - Some types needed by the IR are not representable in the C++ type system (e.g. the result type
of a
VariableAddresswhere the variable is of reference type)
Import path
import semmle.code.cpp.ir.internal.CppTypeDirect supertypes
Known direct subtypes
Predicates
| getByteSize | Gets the size of the type in bytes, if known. |
| getDumpString | Gets a string used in IR dumps |
| getIRType | Gets the |
| hasType | Holds if the |
| hasUnderlyingType | Holds if this type represents the C++ type |
| hasUnspecifiedType | Holds if this type represents the C++ unspecified type |
| toString | Gets a textual representation of this type. |