2. History
● Released in 2005
● Completely open source
● Extensively used by apple with LLVM (low-
level virtual machine)
● Allows for idle time analysis to help identify
possible runtime errors
4. Performance
● Runs as an add-on for xcode -> no extra
noticeable computing power required
● Results are displayed in real time as code is
created, checking syntax and common
errors
6. Benefit/Cost Analysis
● Clang easily imports into Xcode, so setup
effort is minimal
● Free software = no financial cost
● Clang points out and offers suggestions to
possible problem spots and syntax errors
○ Note: clang will not find all errors and may mark
correct code as incorrect
9. Maintenance
● Clang does not update automatically
● The site recommends checking every few
weeks for a new version
10. Comparison to OCLint
Clang
● Integrates into xcode
● Based off the LLVM
compiler
● Open source
● Mac OS, but source can
be built from scratch
for other platforms
OCLint
● Stand alone analyzer
● Based off the LLVM
compiler
● Open source
● Mac and Linux OS
11. Hello World
● You must tell Xcode to use the clang analyzer
● To give it the path, use the command:
--use-checker-build
sudo checker-276/set-xcode-analyzer --use-checker-build=/tmp/checker-276
● More details on switching analyzers can be found at
http://clang-analyzer.llvm.org/xcode.html