[Qt-creator] Using Qt Creator for legacy ObjectiveC++ project

Christian Kandeler christian.kandeler at qt.io
Tue Mar 6 09:55:50 CET 2018


On Tue, 6 Mar 2018 06:18:56 +0100
Henry Skoglund <fromqt at tungware.se> wrote:

> One more question: for all the Xcode bashing, I find the Analyze compile 
> command in Xcode more powerful/finding more stuff than the Analyze/Clang 
> Static Analyzer in Qt Creator. For example, if I have this simple 
> function in my .mm file:
> 
> void xyzzy()
> {
>      int i = 42;
>      int i2 = i + i;
>      i = i2;
> }
> 
> Qt Creator's Analyze is happy with it but Xcode's Analyze says "Value 
> stored to 'i' is never read" for the "i = i2;" source line. Would be 
> nice if Qt Creator could have the same power :-)

I'm pretty sure both IDEs just forward clang's findings to you. When I put the above function in my (C++) project, Creator's clang static analyzer showed me the exact same message you pasted above. 


Christian



More information about the Qt-creator mailing list