• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Doesn't Xcode 4.2 support instancetype?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doesn't Xcode 4.2 support instancetype?


  • Subject: Re: Doesn't Xcode 4.2 support instancetype?
  • From: lowell <email@hidden>
  • Date: Wed, 07 Dec 2011 23:40:29 -0800

It looks like the version of clang that comes with 4.2 is too old. In Xcode, if I set the compiler to a version newer (clang version 3.1 (trunk 145557)) than the one it came with, __has_feature(objc_instancetype) yields a YES.

--lowell

On Dec 7, 2011, at 8:33 PM, Jens Alfke wrote:

> The LLVM CLANG language extensions page* documents an Objective-C extension called “instancetype”. But when I tried to use this in Xcode 4.2 using the “Apple LLVM 3.0”  compiler, it doesn’t recognize the extension. __has_feature(objc_instancetype) evaluates to false, and using “instancetype” as the return type of a method causes a syntax error. What’s going on?
>
> According to “clang --version” I’ve got "Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)”.
>
> —Jens
>
> * http://clang.llvm.org/docs/LanguageExtensions.html#objc_instancetype
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Doesn't Xcode 4.2 support instancetype? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Doesn't Xcode 4.2 support instancetype?
  • Next by Date: spurious clang warning
  • Previous by thread: Doesn't Xcode 4.2 support instancetype?
  • Next by thread: spurious clang warning
  • Index(es):
    • Date
    • Thread