Skip to content

Commit c6ab9c7

Browse files
committed
Fix formatting
1 parent 013d1e2 commit c6ab9c7

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

cpp/common/src/codingstandards/cpp/Literals.qll

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,17 @@ string getTruncatedLiteralText(Literal l) {
1414
}
1515

1616
class WideStringLiteral extends StringLiteral {
17-
WideStringLiteral() {
18-
this.getValueText().regexpMatch("(?s)\\s*L\".*")
19-
}
17+
WideStringLiteral() { this.getValueText().regexpMatch("(?s)\\s*L\".*") }
2018
}
2119

2220
class Utf8StringLiteral extends StringLiteral {
23-
Utf8StringLiteral() {
24-
this.getValueText().regexpMatch("(?s)\\s*u8\".*")
25-
}
21+
Utf8StringLiteral() { this.getValueText().regexpMatch("(?s)\\s*u8\".*") }
2622
}
2723

2824
class Utf16StringLiteral extends StringLiteral {
29-
Utf16StringLiteral() {
30-
this.getValueText().regexpMatch("(?s)\\s*u\".*")
31-
}
25+
Utf16StringLiteral() { this.getValueText().regexpMatch("(?s)\\s*u\".*") }
3226
}
3327

3428
class Utf32StringLiteral extends StringLiteral {
35-
Utf32StringLiteral() {
36-
this.getValueText().regexpMatch("(?s)\\s*U\".*")
37-
}
38-
}
29+
Utf32StringLiteral() { this.getValueText().regexpMatch("(?s)\\s*U\".*") }
30+
}

0 commit comments

Comments
 (0)