We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0
OctalLiteral
1 parent d9f0911 commit 8b39244Copy full SHA for 8b39244
cpp/common/src/codingstandards/cpp/Cpp14Literal.qll
@@ -24,7 +24,7 @@ module Cpp14Literal {
24
* Octal literals must always start with the digit `0`.
25
*/
26
class OctalLiteral extends IntegerLiteral {
27
- OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']+[uUlL]*\\s*") }
+ OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']*[uUlL]*\\s*") }
28
29
override string getAPrimaryQlClass() { result = "OctalLiteral" }
30
}
0 commit comments