...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Astrée |
| sizeof | Partially checked | ||||||
Clang |
| -Wunevaluated-expression | Can diagnose some instance of this rule, but not all (such as the _Alignof NCCE). | ||||||
CodeSonar |
| LANG.STRUCT.SE.SIZEOF | Side effects in sizeof | ||||||
Compass/ROSE | |||||||||
Coverity |
| MISRA C 2004 Rule 12.3 | Partially implemented | ||||||
| CC2.EXP06 | Fully implemented | |||||||
Klocwork |
| MISRA.SIZEOF.SIDE_EFFECT | |||||||
LDRA tool suite |
| 54 S, 653 S | Fully implemented | ||||||
Parasoft C/C++test |
| MISRA2004-12_3_b, MISRA2004-12_3_c | Fully implemented | ||||||
R2018a |
| sizeof, _Alignof, or _Generic operates on expression with side effect The operand of the sizeof operator shall not contain any expression which has potential side effects | |||||||
PRQA QA-C |
| 3307 | Fully implemented | ||||||
PVS-Studio |
| V568 | |||||||
RuleChecker |
| sizeof | Partially checked |
...