summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-07-16 21:10:03 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-11-09 17:42:58 +0100
commit300cfe1985ee6075583c73d4eddb64d09cee941f (patch)
tree474082a685137d8026996b5abd83e1d63a468470 /codegen
parent6772143c4ecc77dcccead85809d50aeb9fe8f679 (diff)
downloadvala-300cfe1985ee6075583c73d4eddb64d09cee941f.tar.gz
codegen: Deprecate "ctype" ccode-attribute
This is an alias for "type"
Diffstat (limited to 'codegen')
-rw-r--r--codegen/valaccodeattribute.vala3
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;