[cfe-dev] Objective-C tidy up
Ted Kremenek
kremenek at apple.com
Wed Jun 18 08:46:23 PDT 2008
On Jun 18, 2008, at 3:22 AM, David Chisnall wrote:
>>>
>>> I now get some warnings from clang that this file doesn't appear to
>>> be expecting but, looking at the code, they all appear to be
>>> sensible:
>>>
>>> Warnings seen but not expected:
>>> Line 1596: [CHECKER] Argument to 'NSString' method 'compare:'
>>> cannot be nil.
>>> Line 1600: [CHECKER] Argument to 'NSString' method
>>> 'caseInsensitiveCompare:' cannot be nil.
>>> Line 1604: [CHECKER] Argument to 'NSString' method
>>> 'compare:options:' cannot be nil.
>>> Line 1608: [CHECKER] Argument to 'NSString' method
>>> 'compare:options:range:' cannot be nil.
>>> Line 1612: [CHECKER] Argument to 'NSString' method
>>> 'compare:options:range:locale:' cannot be nil.
>>> Line 1615: [CHECKER] Argument to 'NSString' method
>>> 'componentsSeparatedByCharactersInSet:' cannot be nil.
>>> Line 1622: [CHECKER] Object allocated on line 1618 and stored into
>>> 's4' is no longer referenced after this point and has a retain count
>>> of +1 (object leaked).
>>> Line 1635: [CHECKER] Reference-counted object is used after it is
>>> released.
>>
>> Where are you seeing this? make test passes for me. Thanks a lot
>> David,
>
> I'm not on Darwin, so these tests aren't run when I do make test - I
> just ran the .mi file you sent and got these. Possibly this file is
> generated from an older version of the .m?
These tests show now run on non-Darwin platforms. The test case is
"NSString.m" in test/Analysis.
More information about the cfe-dev
mailing list