...
Number | Description |
---|---|
Rule 0-1-7 | The value returned by a function having non-void return type that is not an overloaded operator shall always be used. |
Rule 2-13-2 | Octal constants (other than zero) and octal escape sequences (other than "\0") shall not be used. |
Rule 2-13-3 | A "U" suffix shall be applied to all octal or hexadecimal integer literals of unsigned type. |
Rule 2-13-4 | Literal suffixes shall be upper case. |
Rule 3-1-2 | Functions shall not be declared at block scope. |
Rule 3-1-3 | When an array is declared, its size shall either be stated explicitly or defined implicitly by initialization. |
Rule 4-5-1 | Expressions with type bool shall not be used as operands to built-in operators other than the assignment operator =, the logical operators &&, ||, !, the equality operators == and !=, the unary & operator, and the conditional operator. |
Rule 4-5-2 | Expressions with type enum shall not be used as operands to built-in operators other than the subscript operator [ ], the assignment operator =, the equality operators == and !=, the unary & operator, and the relational operators <, <=, >, >=. |
Rule 4-10-2 | Literal zero (0) shall not be used as the null-pointer-constant. |
Rule 5-0-5 | There shall be no implicit floating-integral conversions. |
Rule 5-0-19 | The declaration of objects shall contain no more than two levels of pointer indirection. |
Rule 5-2-4 | C-style casts (other than void casts) and functional notation casts (other than explicit constructor calls) shall not be used. |
Rule 5-2-5 | A cast shall not remove any const or volatile qualification from the type of a pointer or reference. |
Rule 5-2-10 | The increment (++) and decrement (–) operators should not be mixed with other operators in an expression. |
Rule 5-2-11 | The comma operator, && operator and the || operator shall not be overloaded. |
Rule 5-8-1 | The right hand operand of a shift operator shall lie between zero and one less than the width in bits of the underlying type of the left hand operand. |
Rule 5-18-1 | The comma operator shall not be used. |
Rule 6-2-1 | Assignment operators shall not be used in sub-expressions. |
Rule 6-4-2 | All if ... else if constructs shall be terminated with an else clause. |
Rule 6-4-6 | The final clause of a switch statement shall be the default-clause. |
Rule 6-4-8 | Every switch statement shall have at least one case-clause. |
Rule 6-6-2 | The goto statement shall jump to a label declared later in the same function body. |
Rule 7-4-3 | Assembly language shall be encapsulated and isolated. |
Rule 9-5-1 | Unions shall not be used. |
Rule 9-6-2 | Bit-fields shall be either bool type or an explicitly unsigned or signed integral type. |
Rule 10-3-2 | Each overriding virtual function shall be declared with the virtual keyword. |