• 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: C++ compiler isn't being used
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ compiler isn't being used


  • Subject: Re: C++ compiler isn't being used
  • From: Andreas Grosam <email@hidden>
  • Date: Thu, 25 Aug 2011 11:18:32 +0200

On Aug 25, 2011, at 3:18 AM, Jocelyn Houle wrote:

>> I'd also discourage you from switching to C++ for this alone, it's much slower and less supported.  ex: refactoring, the static analyzer, etc. don't support C++.
>
> FYI: more recent CLang/LLVM versions started adding support for C++ static analysis.  I tried it last spring with Xcode 3:
>  http://clang-analyzer.llvm.org/release_notes.html
> and I believe Xcode 4's Clang version supports it by default.
Xcode 4.1 does not yet support "Analyze" for C++ or Objective-C++, even though the menu item is enabled. It seems, .mm files will be just skipped by the analyzer.

However, you can try out newer versions of the analyzer which support C++ and Objective-C++ (the current is checker-257). These are provided at the LLVM site for download. You can even try them out within Xcode. The process is described in the link provided above by Jocelyn. When installed, you can switch force and back to the new analyzer and Xcode's default analyzer.

(Note: switching the Analyzer for Xcode will run a script, a Python script which in turn requires the Python module "AppKit" installed. If this is not yet installed on your system, an easy way to install it is using MacPort:
$ sudo port install py27-pyobjc-cocoa
)

>
> It's probably not as mature as its C analyzer, but it does work, and will hopefully improve over time.
>
> Don't know about the status of refactoring, as I've turned off indexing…
Refactoring does not work yet with C++ or Objective-C++.

How did you manage to turn off indexing?


Andreas

 _______________________________________________
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

  • Follow-Ups:
    • Re: C++ compiler isn't being used
      • From: Jocelyn Houle <email@hidden>
References: 
 >C++ compiler isn't being used (From: Steve Mills <email@hidden>)
 >Re: C++ compiler isn't being used (From: Thomas Davie <email@hidden>)
 >Re: C++ compiler isn't being used (From: Steve Mills <email@hidden>)
 >Re: C++ compiler isn't being used (From: Jocelyn Houle <email@hidden>)
 >Re: C++ compiler isn't being used (From: Steve Mills <email@hidden>)
 >Re: C++ compiler isn't being used (From: Sean McBride <email@hidden>)
 >Re: C++ compiler isn't being used (From: Jocelyn Houle <email@hidden>)

  • Prev by Date: Re: Compiling Files Only in One Configurations
  • Next by Date: Re: C++ compiler isn't being used
  • Previous by thread: Re: C++ compiler isn't being used
  • Next by thread: Re: C++ compiler isn't being used
  • Index(es):
    • Date
    • Thread