2 ms·
Have you looked at the clang analyzer that's integrated into Xcode (http://clang-analyzer.llvm.org/ http://clang-analyzer.llvm.org/)? It doesn't catch everythin
by flohofwoe 11y ago
Have you looked at the clang analyzer that's integrated into Xcode (http://clang-analyzer.llvm.org/ http://clang-analyzer.llvm.org/)? It doesn't catch everything, and sometimes gives false positives, but it is quite amazing how it visualizes problems in the program flow, going through several levels in the call hierarchy, following variable assignments over function calls, etc... in a few cases I was convinced that a problem was a false positive until I really took the time to understand what the static analyzer is trying to tell me and it turned out to be actual bugs.
In my opinion it is mostly poor integration into the coding workflow, and poor visualization of the analyzer warnings that lead to too little use of static code analysis, and another is a too wide-spread 'if it works at all, ship it' mentality.
- dschiptsov 11y agoClang's tooling is amazing, not a single word against it. I gave Java as an example intentionally.