Clang static analyzer on iPhone application shows errors with the latest version

When I run my code through the binary code of version 252, there are no analysis errors. However, when I turn to using the last 253 check, it returns a lot of errors, all of which make no sense. For example, here is the error image that it shows in my Safari browser after the scan script build is complete:

Clang static analyzer error

This is a fairly common error that appears in the error list. As you can see, the method name has Copy at the end of it, but it is still reported as incorrectly named.

Here is a breakdown of the errors I get using version 253 check:

Bug Summary

Results in this analysis run are based on analyzer build checker-253.

Bug Type    Quantity
All Bugs    83  

Dead code   
Unreachable code    17  

Memory (Core Foundation/Objective-C)    
Bad release 19  
Leak of returned object 23  
Object sent -autorelease too many times 24

, -, , , , , , if. :

Yet another Clang analyzer error

, , , . - (- scan-build script), ?

+3
1

-, , ( , URL). , "Get".

, "get", .

:

"get" . .

, .

- :

+ (NSArray *) modifiedOrNewPeople: (FMDatabase *) aDatabase;

. , , .

+4

Source: https://habr.com/ru/post/1784182/


All Articles