Versions Compared

Key

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

...

Inadvertent trigraphs can result in unexpected behavior. Some compilers provide options to warn when trigraphs are encountered or to disable trigraph expansion. Use the warning options and ensure your code compiles cleanly. (See MSC00-C. Compile cleanly at high warning levels.)

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

PRE07-C

low

unlikely

medium

P2

L3

...

ToolVersionCheckerDescription

LDRA tool suite

Include Page
LDRA_V
LDRA_V

81 S

Fully implemented.
GCC
Include Page
GCC_V
GCC_V
 

Can detect violation of this recommendation when the -Wtrigraphs flag is used.

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

dtrigraf

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

...

ISO/IEC 9899:2011 Section 5.2.1.1, "Trigraph sequences"

MISRA 2004 Rule 4.2

 

...