floatType

Coverity Documentation

Version
latest

Matches the Java floating-point types.

Properties

floatType produces a record that contains the following properties:

Name Type Description
kind enum floatKind Either `float` or `double`; see floatKind
alignmentInBytes int The alignment of the type, in bytes
sizeInBits int The total size of the float, in bits. The representation is implementation-defined, so bits for exponent and mantissa are not described.
sizeInBytes int The size of the float, in bytes

Example

The following CodeXM pattern matches any expression that has the type double:


CXM code follows
   node matches expression { .type == floatType { .kind == `double` } };