• 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: Wim Lewis <email@hidden>
  • Date: Tue, 29 Sep 2009 17:29:43 -0700


On Sep 29, 2009, at 5:12 PM, Steve Cronin wrote:
This is the only method that Clang has an issue with…

Why does Clang believe that an 'owning retain count is expected' if the method is never called?
Why is Clang picking on this one method which mirrors the mechanics of so many others?

Clang-sa decides what the retain behavior should be based on the method's name. Does the method name by any chance contain a substring like "new" or "copy"?


There are some macros in some header or other which you can use to tell Clang that a method should have some other behavior than what it guesses from the name, although they aren't as flexible as I might like.


_______________________________________________

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


References: 
 >Static Analyzer Question (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: simpleBrowser example has setCellClass setting a cell to an instance?
  • Next by Date: Re: Static Analyzer Question
  • Previous by thread: Re: Static Analyzer Question
  • Next by thread: Re: Static Analyzer Question
  • Index(es):
    • Date
    • Thread