Skip to content

Instantly share code, notes, and snippets.

View creednmd's full-sized avatar

Andy Warwick creednmd

  • Nottingham, England
View GitHub Profile
// Tell Xcode where our newer version of the analyzer is, and set it as the GCC_VERSION.
GCC_VERSION = com.apple.compilers.llvm.clang.1_0.analyzer
CC = /Users/andyw/Dropbox/Developer/Clang/checker-255/bin/clang
// Turn on all the experimental and extended warnings.
WARNING_CFLAGS = -Xanalyzer -analyzer-eagerly-assume -Xanalyzer -analyzer-check-dead-stores -Xanalyzer -analyzer-check-llvm-conventions -Xanalyzer -analyzer-check-objc-mem -Xanalyzer -analyzer-check-objc-methodsigs -Xanalyzer -analyzer-check-objc-missing-dealloc -Xanalyzer -analyzer-check-objc-unused-ivars -Xanalyzer -analyzer-check-security-syntactic -Xanalyzer -analyzer-opt-analyze-nested-blocks -Xanalyzer -warn-uninit-values -Xanalyzer -warn-sizeof-pointer -Xanalyzer -analyzer-check-buffer-overflows -Xanalyzer -analyzer-opt-analyze-headers -Xanalyzer -analyzer-experimental-checks -Xanalyzer -analyzer-display-progress -Xanalyzer -analyzer-no-purge-dead
@creednmd
creednmd / Clang Options
Created March 9, 2011 21:04
Settings for Clang Static Analyzer to flag all sorts of extra warnings
WARNING_CFLAGS = -Xanalyzer -analyzer-eagerly-assume -Xanalyzer -analyzer-check-dead-stores -Xanalyzer -analyzer-check-llvm-conventions -Xanalyzer -analyzer-check-objc-mem -Xanalyzer -analyzer-check-objc-methodsigs -Xanalyzer -analyzer-check-objc-missing-dealloc -Xanalyzer -analyzer-check-objc-unused-ivars -Xanalyzer -analyzer-check-security-syntactic -Xanalyzer -analyzer-opt-analyze-nested-blocks -Xanalyzer -warn-uninit-values -Xanalyzer -warn-sizeof-pointer -Xanalyzer -analyzer-check-buffer-overflows -Xanalyzer -analyzer-opt-analyze-headers -Xanalyzer -analyzer-experimental-checks -Xanalyzer -analyzer-display-progress -Xanalyzer -analyzer-no-purge-dead