Difference between revisions of "Clang"

From ArchWiki
Jump to: navigation, search
(Build packages with Clang)
(Added section about the static analyzer.)
Line 6: Line 6:
 
== Build packages with Clang ==
 
== Build packages with Clang ==
 
Add {{ic|1=export CC=clang}} and (for c++) {{ic|1=export CXX=clang++}} to your {{ic|/etc/makepkg.conf}}.
 
Add {{ic|1=export CC=clang}} and (for c++) {{ic|1=export CXX=clang++}} to your {{ic|/etc/makepkg.conf}}.
 +
 +
== Using the Static Analyzer ==

Revision as of 13:38, 6 December 2013

Clang is a compiler set based on LLVM. It is distributed under BSD Licence.

Installation

Install clang form the Official Repositories.

Build packages with Clang

Add export CC=clang and (for c++) export CXX=clang++ to your /etc/makepkg.conf.

Using the Static Analyzer