Top "Clang" questions

For questions about the clang LLVM compiler front end.

clang: how to list supported target architectures?

Currently I am interested in ARM in general and specifically iphone/android targets. But I just want to know more …

clang llvm
How to update LLVM & Clang on Mac OSX?

On my version of Mac OSX (Lion 10.7.1, XCode 4.1), there is LLVM 3.0svn and Clang 2.1. The current versions are LLVM 3.0 and …

xcode macos osx-lion llvm clang
ARC and bridged cast

With ARC, I can no longer cast CGColorRef to id. I learned that I need to do a bridged cast. …

objective-c automatic-ref-counting type-conversion clang
Clang optimization levels

On gcc, the manual explains what -O3, -Os, etc. translate to in terms of specific optimisation arguments (-funswitch-loops, -fcompare-elim, etc.) …

clang compiler-optimization user-manual
"Implicit instantiation of undefined template" when forward declaring template class

I've got some code in which I need to forward-declare the a template class (or at least, forward-declaring would make …

c++ templates clang forward-declaration
Compile, Build or Archive problems with Xcode 4 (and dependencies)

This question has evolved over the past several weeks to cover more general issues with xcode4 (and upgrading projects form …

objective-c compiler-construction xcode4 clang c-preprocessor
Clang doesn't see basic headers

I've tried to compile simple hello world on Fedora 20 with Clang, and I get the following output: d.cpp:1:10: fatal …

c++ c++11 clang clang++ llvm-clang
Can I use C++11 with Xcode?

I am considering the use of some C++11 features (like auto for instance) in some cross-platform projects (Windows+Mac). On …

c++ xcode gcc c++11 clang
In CMake, how can I test if the compiler is Clang?

We have a set of cross-platform CMake build scripts, and we support building with Visual C++ and GCC. We're trying …

c++ c cmake clang
clang error: unknown argument: '-mno-fused-madd' (python package installation failure)

I get the following error when attempting to install psycopg2 via pip on Mavericks 10.9: clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] …

python clang pip osx-mavericks