Skip to content

Commit 97fef4b

Browse files
committed
C++: Switch strategy to nomagic.
1 parent ff3bedc commit 97fef4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/models/interfaces/FormattingFunction.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
9292
* snapshots there may be multiple results where we can't tell which is correct for a
9393
* particular function.
9494
*/
95-
Type getWideCharType() {
95+
pragma[nomagic] Type getWideCharType() {
9696
result = getFormatCharType() and
9797
result.getSize() > 1
9898
or
9999
not getFormatCharType().getSize() > 1 and
100-
result = pragma[only_bind_out](getAFormatterWideTypeOrDefault()) // may have more than one result
100+
result = getAFormatterWideTypeOrDefault() // may have more than one result
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)