Main Content
MISRA C++:2008 Rule 3-9-2
typedefs that indicate size and signedness should be used in place of the basic numerical types
Description
Rule Definition
typedefs that indicate size and signedness should be used in place of the basic numerical types.
Rationale
When the amount of memory being allocated is important, using specific-length types makes it clear how much storage is being reserved for each object.
Polyspace Implementation
The rule checker does not raise violations in templates that are not instantiated.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Basic Concepts |
Category: Advisory |
Version History
Introduced in R2013b