mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: Switch strategy to nomagic.
This commit is contained in:
@@ -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
|
* snapshots there may be multiple results where we can't tell which is correct for a
|
||||||
* particular function.
|
* particular function.
|
||||||
*/
|
*/
|
||||||
Type getWideCharType() {
|
pragma[nomagic] Type getWideCharType() {
|
||||||
result = getFormatCharType() and
|
result = getFormatCharType() and
|
||||||
result.getSize() > 1
|
result.getSize() > 1
|
||||||
or
|
or
|
||||||
not getFormatCharType().getSize() > 1 and
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user