Skip to content

Commit a4250be

Browse files
committed
CPP: Un-deprecate getNumArgNeeded(n). Turns out I missed a place where it's used.
1 parent ed87f25 commit a4250be

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,8 @@ class FormatLiteral extends Literal {
854854
/**
855855
* Gets the number of arguments required by the nth conversion specifier
856856
* of this format string.
857-
*
858-
* DEPRECATED. This was a helper function for `getNumArgNeeded` and is no
859-
* longer required.
860857
*/
861-
deprecated int getNumArgNeeded(int n) {
858+
int getNumArgNeeded(int n) {
862859
exists(this.getConvSpecOffset(n)) and
863860
result = count(int mode | hasFormatArgumentIndexFor(n, mode))
864861
}

0 commit comments

Comments
 (0)