• 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: Static Analyzer integration?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static Analyzer integration?


  • Subject: Re: Static Analyzer integration?
  • From: Karl Moskowski <email@hidden>
  • Date: Tue, 16 Dec 2008 15:18:38 -0500


On 16-Dec-08, at 3:04 PM, Timothy Reaves wrote:

	Has anyone tried to get the llvm static analyzer to run as a target
in Xcode, with the output viewable inline?


I haven't tried setting up a target, but I was able to add the User Script below to Xcode's scripts menu. It works well enough, with the caveat that you have to have a project file selected and the editor has to have focus, not the group tree (otherwise, it runs in the wrong directory).

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Input: No Input
Directory: Selection

#!/bin/sh
xcodebuild clean
<path-to>/scan-build -analyze-headers --view xcodebuild - activeconfiguration -activetarget
xcodebuild clean


Output: Open In New Document
Errors: Merge with Script Output

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

  • Prev by Date: Static Analyzer integration?
  • Next by Date: ld crash with a release library we build...
  • Previous by thread: Static Analyzer integration?
  • Next by thread: ld crash with a release library we build...
  • Index(es):
    • Date
    • Thread