Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 181eb80

Browse files
Robert MarshRobert Marsh
authored andcommitted
C++: Add QLDoc for getOutputArgument
1 parent 37c9217 commit 181eb80

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ class FormattingFunctionCall extends Expr {
255255
}
256256

257257
/**
258-
*
258+
* Gets the argument, if any, to which the output is written. If `isStream` is
259+
* `true`, the output argument is a stream (that is, this call behaves like
260+
* `fprintf`). If `isStream` is `false`, the output argument is a buffer (that
261+
* is, this call behaves like `sprintf`)
259262
*/
260263
Expr getOutputArgument(boolean isStream) {
261264
result = this.(Call).getArgument(this.(Call).getTarget().(FormattingFunction).getOutputParameterIndex(isStream))

0 commit comments

Comments
 (0)