diff --git a/rules/S1314/cfamily/rule.adoc b/rules/S1314/cfamily/rule.adoc index 69a02f197d..bafef7680f 100644 --- a/rules/S1314/cfamily/rule.adoc +++ b/rules/S1314/cfamily/rule.adoc @@ -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[]