clang-static-analyzer

Example code to trigger Clang's static analyser

I would like to see a small but complete snippet of code that will cause Clang's static analyser to complain. My motivation is mostly that I'm trying to get it to work on my PIC32 code, and I need a way to distinguish between "all the code is fine" and "it's not actually doing anything". It's also partly curiosity, since I can't seem to ...

Xcode 3.2.4 Analyzer skipped this file?

Having just upgraded to iOS 4.1 (Xcode 3.2.4) I am getting warnings when using the static analyser that I don't think I was previously getting when using 3.2.3 Now the project compiles just fine, is this something that has changed or do I have something set wrong? NB: I have the build results window set to "All Messages" EDIT: I th...