...
All occurrences in a source file of the following sequences of three characters (that is, trigraph sequences) are replaced with the corresponding single character.
??=
#
??)
]
??!
|
??(
[
??'
^
??>
}
??/
\
??<
{
??-
~
...
Recommendation | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
PRE07-C | Low | Unlikely | Yes | MediumNo | P2 | L3 |
Automated Detection
| Tool | Version | Checker | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| trigraph | Fully checked | ||||||||||||||||||
| Axivion Bauhaus Suite |
| CertC-PRE07 | |||||||||||||||||||
| CC2.PRE07 | Fully implemented | |||||||||||||||||||
| GCC |
| Can detect violation of this recommendation when the | |||||||||||||||||||
| Helix QAC |
| C3601 | |||||||||||||||||||
| LDRA tool suite |
| 81 S | Fully implemented | ||||||||||||||||||
| Parasoft C/C++test |
| CERT_C-PRE07-a | Trigraphs shall not be used PRQA QA | ||||||||||||||||||
| PC- | Clint Plus |
| PRQA QA
| C
| v
| PRQA QA-C_v | 3601 |
| 584, 854, 9060 | Fully supported | |||||||||||
| Polyspace Bug Finder |
| CERT C: Rec. PRE07-C | Checks for use of trigraphs (rec. fully covered)Partially implemented | ||||||||||||||||||
| RuleChecker |
| trigraph | Fully checked | ||||||||||||||||||
| SonarQube C/C++ Plugin |
| TrigraphUsage |
...