Name | Checked | Synopsis |
---|
6.5.a
|
 |
Bitwise operations shall only be applied on operands of unsigned type. |
6.5.2.1.a
|
 |
Array subscripting requires a pointer to object type and one or more integral subscript expressions. The indices must be within the bounds values of the (allocated) array. |
6.5.2.1.b
|
|
typedef for an array of unknown size shall not be used. |
6.5.2.2.b
|
 |
Do not declare functions within functions. |
6.5.2.2.c
|
 |
Do not use functions marked as deprecated. |
6.5.2.3.a
|
 |
When structures are accessed by means of a pointer, the pointer-to notation -> rather than the member notation * shall be used to denote a specified member of the structure. |
6.5.2.3.b
|
 |
Structs or unions must be passed by reference into functions with variable numbers of parameters. |
6.5.2.3.d
|
 |
Do not use nested structures. |
6.5.3.1.a
|
 |
Do not mix postfix and prefix increment and/or decrement in a statement. |
6.5.3.1.b
|
 |
Don't increment (decrement) a pointer to a function. |
6.5.3.2.a
|
 |
A variable declared as an array shall not be used as a pointer. |
6.5.3.3.a
|
 |
The unary plus operator shall not be used. |
6.5.3.3.b
|
 |
Unary minus shall only be applied to an operand having a signed arithmetic type. |
6.5.3.4.a
|
 |
sizeof shall not be applied to an expression with side-effects. |
6.5.3.4.b
|
 |
Don't use sizeof on a variable of an array type that is passed as argument. |
6.5.3.4.c
|
 |
Don't apply sizeof to a function. |
6.5.4.a
|
 |
Casting shall only be used to denote required casting. |
6.5.7.b
|
 |
The right operand of a left shift operator for a signed type as left operand shall not be so large that the resulting value cannot be represented. |
6.5.8.a
|
 |
Comparison of unsigned operands shall not occur against negative values. |
6.5.8.c
|
 |
Don't compare floats of different types. |
6.5.8.d
|
|
Comparison of floating point numbers (float or double) shall preferably be avoided. |
6.5.8.e
|
|
Use memcmp only to compare arrays of scalar types. |
6.5.8.f
|
 |
Do not compare floating point numbers with memcmp. |
6.5.9.a
|
 |
Pointer comparison shall only be done for compatible pointer types. |
6.5.9.b
|
 |
Floating point expressions shall not be compared using the "==", "!=" operators. Floating point expressions shall be compared using special functions. |
6.5.13.a
|
|
The right-hand operand of the "&&" or "||" operator shall not contain any side-effects. |
6.5.15.a
|
 |
The second and third operand of a conditional expression of the conditional operator shall not contain side-effects. |
6.5.16.a
|
 |
Do not use nested assignments. |
6.5.16.b
|
 |
Do not discard const qualifiers in pointer assignments. |
6.5.17.a
|
 |
The comma operator shall not be used. |