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.
RoutineType
s 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
VariableAddress
where the variable is of reference type)
Import path
import semmle.code.cpp.ir.internal.CppType
Direct 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 |
hasUnspecifiedType | Holds if this type represents the C++ type |
toString | Gets a textual representation of this type. |