Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/common/src/codingstandards/cpp/Cpp14Literal.qll
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Cpp14Literal {
* Octal literals must always start with the digit `0`.
*/
class OctalLiteral extends IntegerLiteral, RecognizedNumericLiteral {
OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']*[uUlL]*\\s*") }
OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']+[uUlL]*\\s*") }
Comment thread
mbaluda marked this conversation as resolved.
Outdated

override string getAPrimaryQlClass() { result = "OctalLiteral" }
}
Expand Down
Loading