• 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 Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Static Analyzer Question


  • Subject: Re: Static Analyzer Question
  • From: Dave DeLong <email@hidden>
  • Date: Tue, 29 Sep 2009 19:00:33 -0600

To continue a bit on this idea, I believe that the static analyzer only analyzes a single method at a time. I don't believe it recurses into called methods to do analysis. (Can any of the clang-sa folks confirm this?)

Dave

On Sep 29, 2009, at 6:31 PM, Jens Alfke wrote:

On Sep 29, 2009, at 5:12 PM, Steve Cronin wrote:

Why does Clang believe that an 'owning retain count is expected' if the method is never called?

Objective-C is a dynamic enough language that there is no way to tell at compile time whether a method is reachable or not. Even if that selector never appears in your code, it could be constructed at runtime, or your code could load a plugin bundle that calls that selector.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Static Analyzer Question
      • From: Ken Thomases <email@hidden>
References: 
 >Static Analyzer Question (From: Steve Cronin <email@hidden>)
 >Re: Static Analyzer Question (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Next by Date: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Previous by thread: Re: Static Analyzer Question
  • Next by thread: Re: Static Analyzer Question
  • Index(es):
    • Date
    • Thread