C++: Switch strategy to nomagic.

This commit is contained in:
Geoffrey White
2022-03-21 12:58:06 +00:00
parent ff3bedcab9
commit 97fef4b3a5

View File

@@ -92,12 +92,12 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
* snapshots there may be multiple results where we can't tell which is correct for a
* particular function.
*/
Type getWideCharType() {
pragma[nomagic] Type getWideCharType() {
result = getFormatCharType() and
result.getSize() > 1
or
not getFormatCharType().getSize() > 1 and
result = pragma[only_bind_out](getAFormatterWideTypeOrDefault()) // may have more than one result
result = getAFormatterWideTypeOrDefault() // may have more than one result
}
/**