Skip to content

Commit 799b932

Browse files
committed
C++: Restore QLDoc on deprecated predicates.
1 parent 9c277b3 commit 799b932

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cpp/ql/src/semmle/code/cpp/commons/Printf.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,22 @@ predicate variadicFormatter(Function f, string type, int formatParamIndex, int o
9999
callsVariadicFormatter(f, type, formatParamIndex, outputParamIndex)
100100
}
101101

102+
/**
103+
* A standard function such as `vprintf` that has a format parameter
104+
* and a variable argument list of type `va_arg`.
105+
*
106+
* DEPRECATED: Use the four argument version instead.
107+
*/
102108
deprecated predicate primitiveVariadicFormatter(TopLevelFunction f, int formatParamIndex) {
103109
primitiveVariadicFormatter(f, _, formatParamIndex, _)
104110
}
105111

112+
/**
113+
* Holds if `f` is a function such as `vprintf` that has a format parameter
114+
* (at `formatParamIndex`) and a variable argument list of type `va_arg`.
115+
*
116+
* DEPRECATED: Use the four argument version instead.
117+
*/
106118
deprecated predicate variadicFormatter(Function f, int formatParamIndex) {
107119
variadicFormatter(f, _, formatParamIndex, _)
108120
}

0 commit comments

Comments
 (0)