Skip to content

Commit 8ddf877

Browse files
committed
CPP: Autoformat.
1 parent cc43e11 commit 8ddf877

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

cpp/ql/src/semmle/code/cpp/security/SensitiveExprs.qll

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,25 @@ private predicate suspicious(string s) {
88
s.matches("%account%") or
99
s.matches("%accnt%") or
1010
s.matches("%trusted%")
11-
) and not (
11+
) and
12+
not (
1213
s.matches("%hashed%") or
1314
s.matches("%encrypted%") or
1415
s.matches("%crypt%")
1516
)
1617
}
1718

1819
class SensitiveVariable extends Variable {
19-
SensitiveVariable()
20-
{
21-
suspicious(getName().toLowerCase())
22-
}
20+
SensitiveVariable() { suspicious(getName().toLowerCase()) }
2321
}
2422

2523
class SensitiveFunction extends Function {
26-
SensitiveFunction()
27-
{
28-
suspicious(getName().toLowerCase())
29-
}
24+
SensitiveFunction() { suspicious(getName().toLowerCase()) }
3025
}
3126

3227
class SensitiveExpr extends Expr {
33-
SensitiveExpr()
34-
{
35-
this.(VariableAccess).getTarget() instanceof SensitiveVariable or
36-
this.(FunctionCall).getTarget() instanceof SensitiveFunction
28+
SensitiveExpr() {
29+
this.(VariableAccess).getTarget() instanceof SensitiveVariable or
30+
this.(FunctionCall).getTarget() instanceof SensitiveFunction
3731
}
3832
}

0 commit comments

Comments
 (0)