In my free time, I work on the Clang open source project, mostly on the static analyzer. This is the backend behind Xcode’s wonderful “Analyze” tool, which catches path-sensitive problems like memory leaks and then shows you the path where the leak happens.
Using custom builds of the analyzer in Xcode has always been fairly easy with the
set-xcode-analyzer tool, distributed with packaged builds of the checker or hidden in the
tools/scan-build directory in the Clang source repository. But what if you want to use a custom build as your compiler?…say, to play with Automatic Reference Counting (which …