Versions Compared

Key

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

Lowercase letter l (ell) can easily be confused with the digit 1 (one). This can be particularly confusing when indicating that an integer literal constant is a long value. This recommendation is similar to DCL02-C. Use visually distinct identifiers.

Likewise, you should use uppercase LL rather than lowercase ll when indicating that an integer literal constant is a long long value.

...

Tool

Version

Checker

Description

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

ltrlsynt

Fully implemented

PRQA QA·CQA-C
Include Page
PRQA_V
PRQA_V
 Fully implemented

...

CERT C++ Secure Coding Standard: DCL16-CPP. Use 'L', not 'l', to indicate a long value

Bibliography

Lockheed Martin 2005 AV Rule 14, Literal suffixes shall use uppercase rather than lowercase letters.

...