Skip to content

Commit 5489bb9

Browse files
committed
C++: Autoformat.
1 parent 8f6e56c commit 5489bb9

File tree

1 file changed

+12
-6
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+12
-6
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Printf.qll

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,23 @@ class Sprintf extends FormattingFunction {
6767
this instanceof TopLevelFunction and
6868
(
6969
// sprintf(dst, format, args...)
70-
hasGlobalOrStdName("sprintf") or
70+
hasGlobalOrStdName("sprintf")
71+
or
7172
// _sprintf_l(dst, format, locale, args...)
72-
hasGlobalName("_sprintf_l") or
73+
hasGlobalName("_sprintf_l")
74+
or
7375
// __swprintf_l(dst, format, locale, args...)
74-
hasGlobalName("__swprintf_l") or
76+
hasGlobalName("__swprintf_l")
77+
or
7578
// wsprintf(dst, format, args...)
76-
hasGlobalOrStdName("wsprintf") or
79+
hasGlobalOrStdName("wsprintf")
80+
or
7781
// g_strdup_printf(format, ...)
78-
hasGlobalName("g_strdup_printf") or
82+
hasGlobalName("g_strdup_printf")
83+
or
7984
// g_sprintf(dst, format, ...)
80-
hasGlobalName("g_sprintf") or
85+
hasGlobalName("g_sprintf")
86+
or
8187
// __builtin___sprintf_chk(dst, flag, os, format, ...)
8288
hasGlobalName("__builtin___sprintf_chk")
8389
) and

0 commit comments

Comments
 (0)