Next: 7 Conversions  Up: index  Previous: 5 Control Flow  Contents

6 Constants

6.1

High Integrity CPP Rule

Use suffixes L, U, and UL for all constants of type 'long', 'unsigned int' and 'unsigned long'.

6.2

High Integrity CPP Rule

Use suffixes F and L for all constants of type 'float' and 'long double'.

6.3

High Integrity CPP Rule

Write the value of a character constant to be in the range of its type.

6.4

High Integrity CPP Rule

Only use escape sequences defined by the ISO C++ Standard.

6.5

High Integrity CPP Rule

Do not write character string literal tokens adjacent to wide string literal tokens.

6.6

High Integrity CPP Guideline

Global and static data should be const.


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP