Re: Still another static analyzer (and LLVM parser) mistake
Re: Still another static analyzer (and LLVM parser) mistake
- Subject: Re: Still another static analyzer (and LLVM parser) mistake
- From: Kyle Sluder <email@hidden>
- Date: Mon, 12 Jul 2010 17:49:21 -0700
On Mon, Jul 12, 2010 at 5:16 PM, Matt Neuburg <email@hidden> wrote:
> There's no warning if you do this:
>
> NSArray* arr = [NSArray arrayWithObjects: @"howdy"];
>
> GCC's parser is smart enough to know that the missing nil terminator is just
> asking for trouble.
Have you filed a bug? http://www.llvm.org/bugs
It looks like there are tests in place to ensure that clang parses
__attribute__((sentinel)) correctly, but I don't see any tests that
try calling functions decorated with __attribute__((sentinel)).
--Kyle Sluder
_______________________________________________
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