Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V

sizeof

Partially checked
Clang
Include Page
Clang_V
Clang_V
-Wunevaluated-expressionCan diagnose some instance of this rule, but not all (such as the _Alignof NCCE).
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
LANG.STRUCT.SE.SIZEOFSide effects in sizeof
Compass/ROSE




Coverity
Include Page
Coverity_V
Coverity_V

MISRA C 2004 Rule 12.3

Partially implemented

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.EXP06

Fully implemented

Klocwork
Include Page
Klocwork_V
Klocwork_V
MISRA.SIZEOF.SIDE_EFFECT
LDRA tool suite
Include Page
LDRA_V
LDRA_V

54 S, 653 S

Fully implemented

Parasoft C/C++test
Include Page
Parasoft_V
Parasoft_V
MISRA2004-12_3_b, MISRA2004-12_3_cFully implemented

Polyspace Bug Finder

R2018a

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

Side effect of expression ignored

MISRA C:2012 Rule 13.6

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
Include Page
PRQA QA-C_v
PRQA QA-C_v
3307Fully implemented
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V568
RuleChecker
Include Page
RuleChecker_V
RuleChecker_V
sizeofPartially checked

...