Is the feed symbol (FF) valid in MISRA C2

Opening some legacy code in Notepad ++ and notice a few occurrences of the FF character below the function comment headers. This is ASCII code 12, which is a feed symbol. Are the FF characters valid in the MISRA C2 standard, please? Apologies I do not have access to check PC-Lint / QAC.

+4
source share
2 answers

You seem to be talking about a commercial product whose ads do not provide any useful information, such as a press release .

Formal transmission is explicitly indicated as part of the character set in ISO / IEC 9899: 199 (E) . 5.2.1 Character Sets. If the tool advised you not to use standard documentation, this would be a defect in the tool itself. A comparable issue would be whether to allow tabs in leading spaces in a string.

Given this context, the use of form feed symbols is a stylistic issue unrelated to static analysis, and I would not expect them to be confused in a commercial product.

+2
source

MISRA-C: 2004 3.2 , (, ISO). , .

.

+1

Source: https://habr.com/ru/post/1585062/


All Articles