The instancetype has been added as a typedef alias to id in order to allow diagnosis of cases where a class is used or returned where an instance is expected. This adds the typedef, and tests that we can parse it. It doesn't alter the diagnostics yet. gcc/objc/ 2019-05-18 Iain Sandoe <iain@sandoe.co.uk> * objc/objc-act.h (OCTI_INSTANCE_TYPE, OCTI_INSTANCETYPE_NAME): New. (objc_global_trees): Add instance type and name. (INSTANCE_TYPEDEF_NAME): New. * objc/objc-act.c (synth_module_prologue): Build decls for objc_instancetype_type and objc_instancetype_name. gcc/testsuite/ 2019-05-18 Iain Sandoe <iain@sandoe.co.uk> * objc.dg/instancetype-0.m: New. From-SVN: r271370
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
Make-lang.in | Loading commit data... | |
config-lang.in | Loading commit data... | |
lang-specs.h | Loading commit data... | |
objc-act.c | Loading commit data... | |
objc-act.h | Loading commit data... | |
objc-encoding.c | Loading commit data... | |
objc-encoding.h | Loading commit data... | |
objc-gnu-runtime-abi-01.c | Loading commit data... | |
objc-lang.c | Loading commit data... | |
objc-map.c | Loading commit data... | |
objc-map.h | Loading commit data... | |
objc-next-metadata-tags.h | Loading commit data... | |
objc-next-runtime-abi-01.c | Loading commit data... | |
objc-next-runtime-abi-02.c | Loading commit data... | |
objc-runtime-hooks.h | Loading commit data... | |
objc-runtime-shared-support.c | Loading commit data... | |
objc-runtime-shared-support.h | Loading commit data... | |
objc-tree.def | Loading commit data... |