CPP: Deprecate old mechanisms FormattingFunction.isWideCharDefault and FormatLiteral.isWideCharDefault.

This commit is contained in:
Geoffrey White
2019-02-28 12:52:56 +00:00
parent 5b8a6c8335
commit 2bac7f1516
2 changed files with 5 additions and 2 deletions

View File

@@ -215,8 +215,9 @@ class FormatLiteral extends Literal {
/**
* Holds if the default meaning of `%s` is a `wchar_t *`, rather than
* a `char *` (either way, `%S` will have the opposite meaning).
* DEPRECATED: Use getDefaultCharType() instead.
*/
predicate isWideCharDefault() {
deprecated predicate isWideCharDefault() {
getUse().getTarget().(FormattingFunction).isWideCharDefault()
}

View File

@@ -49,8 +49,10 @@ abstract class FormattingFunction extends Function {
/**
* Holds if the default meaning of `%s` is a `wchar_t *`, rather than
* a `char *` (either way, `%S` will have the opposite meaning).
*
* DEPRECATED: Use getDefaultCharType() instead.
*/
predicate isWideCharDefault() { none() }
deprecated predicate isWideCharDefault() { none() }
/**
* Gets the default character type expected for `%s` by this function. Typically