Why's the Build and Analyze command not finding obvious memory management errors?
-
20-09-2019 - |
Question
For some reason, the Clang Static Analyzer in my Xcode doesn't complain about anything. I made big memory management mistakes to try it (alloc and no release), but it never finds them and doesn't complain about them. Even after clean all targets and again Build and Analyze.
I was building for Simulator 3.1
Must I set that up specifically? A special compiler setting or so? How?
Solution
Clang isn't perfect.
Edit: But that isn't necessarily the case in this senario.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow