facebook / infer

A static analyzer for Java, C, C++, and Objective-C
http://fbinfer.com/
MIT License
14.89k stars 2.01k forks source link

objc code ignored by Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr #1677

Open Fistice opened 2 years ago

Fistice commented 2 years ago

When code like

NSString *string;
if(string.length) 
{
    xxx
}
if(_string)
{
    xxx
}

and run infer, it will be ignored and output as

Aborting translation of method 'TestObjAAA.test02' in file 'Testaaa/main.m'
Known incorrect assumption in the frontend: Expected source expression for OpaqueValueExpr

In source code, test01, 02, 05, 06 and 10 are ignored. image I don't see this in known issues. How to solve it?