by sadert · 11y ago · 0 comments
http://clang-analyzer.llvm.org/
(obviously it supports Java as well, but I assume Android Studio comes with some sort of static analyzer as well, so same question?)
It specifically calls out null pointer exceptions but those... aren't a thing... in Objective-C, messages passed to nil return all 0 bits, and that's okay (unless they mean null dereferences...).
About null dereferences, they are still a problem in ObjC: if you dereference a nil block it will crash, if you access an instance variable directly or try to pass nil to arrays or dictionaries it will crash. We try to find that kind of bugs.
You just need to insert it into your makefiles as an example of the thing that "compiles" stuff.
Its not a huge deal, but just pointing out its most definitely not ios only. :)
Findbugs can be useful too; it is more akin to linters.