CPP-4967 S1314 Cover C++23 escape syntax in RSPEC
This commit is contained in:
parent
d836e73941
commit
02d29a500a
@ -33,12 +33,13 @@ char myChar = '\n'; // Use the common notation if it exists for the literal
|
||||
|
||||
* Octal values have traditionally been used for user permissions in Posix file systems, and this rule will ignore octal literals used in this context.
|
||||
* ``'\0'`` is a common notation for a null character, so the rule ignores it.
|
||||
* Since {cpp}23, an octal escape sequence can also be written `\o{123}`. Since this notation is explicit, the rule ignores it too.
|
||||
|
||||
== Resources
|
||||
|
||||
* MISRA C:2004, 7.1 - Octal constants (other than zero) and octal escape sequences shall not be used.
|
||||
* MISRA {cpp}:2008, 2-13-2 - Octal constants (other than zero) and octal escape sequences (other than "\0") shall not be used
|
||||
* MISRA {cpp}:2023, 5.13.3 - Octal constants shall not be used
|
||||
* MISRA C:2012, 7.1 - Octal constants shall not be used
|
||||
* MISRA {cpp}:2008, 2-13-2 - Octal constants (other than zero) and octal escape sequences (other than "\0") shall not be used
|
||||
* https://wiki.sei.cmu.edu/confluence/x/atYxBQ[CERT, DCL18-C.] - Do not begin integer constants with 0 when specifying a decimal value
|
||||
|
||||
ifdef::env-github,rspecator-view[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user