命令
infer -- clang -c <文件名>
分析过程信息:
localhost:examples wuxian$ infer -- clang -c Hello.m
Hello.m:4:1: warning: no 'assign', 'retain', or 'copy' attribute is specified -
'assign' is assumed [-Wobjc-property-no-attribute]
@property NSString* s;
^
Hello.m:4:1: warning: default property attribute 'assign' not appropriate for
non-GC object [-Wobjc-property-no-attribute]
2 warnings generated.
Starting analysis (Infer version v0.1.0)
Analysis done
1 file analyzed
No issues found