diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-07-16 21:10:03 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-09 17:42:58 +0100 |
commit | 300cfe1985ee6075583c73d4eddb64d09cee941f (patch) | |
tree | 474082a685137d8026996b5abd83e1d63a468470 /codegen | |
parent | 6772143c4ecc77dcccead85809d50aeb9fe8f679 (diff) | |
download | vala-300cfe1985ee6075583c73d4eddb64d09cee941f.tar.gz |
codegen: Deprecate "ctype" ccode-attribute
This is an alias for "type"
Diffstat (limited to 'codegen')
-rw-r--r-- | codegen/valaccodeattribute.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/codegen/valaccodeattribute.vala b/codegen/valaccodeattribute.vala index 6acdafde9..3740d232a 100644 --- a/codegen/valaccodeattribute.vala +++ b/codegen/valaccodeattribute.vala @@ -291,6 +291,9 @@ public class Vala.CCodeAttribute : AttributeCache { _ctype = ccode.get_string ("type"); if (_ctype == null) { _ctype = ccode.get_string ("ctype"); + if (_ctype != null) { + Report.deprecated (node.source_reference, "[CCode (ctype = \"...\")] is deprecated, use [CCode (type = \"...\")] instead."); + } } } ctype_set = true; |