Top "Clang" questions

For questions about the clang LLVM compiler front end.

Apple LLVM compiler 3.1 error

Just updated Xcode to 4.3 and now I can't build my app. I'm getting this error: Command /Applications/Xcode.app/Contents/…

xcode clang exit-code
Optimization levels in LLVM and Clang

I am working on a project that I had been compiling with LLVM 2.6 and the llvm-gcc front end. I'm trying …

llvm clang llvm-gcc
How to switch between GCC and Clang in Clion from within CMakeLists.txt using windows/cygwin

I put set(CMAKE_CXX_COMPILER "/usr/bin/clang.exe") Run/Clean, Run/Build. I get link errors like: undefined …

c++ gcc clang clion
std::shared_ptr and initializer lists

The std::shared_ptr constructor isn't behaving as I expected: #include <iostream> #include <vector> void func(…

c++ c++11 clang shared-ptr initializer-list
clang-based cross-platform C++ IDE?

The clang C++ compiler claims to be built for, among other things, better IDE integration by providing an API for …

c++ ide cross-platform clang
How can i link my c++ program statically with libstdc++ on osx using clang?

i'm writting c++ program and i want to distribute it on Mac OS X versions 10.6 and above. The problem is …

c++ macos clang static-linking libstdc++
How to install CLang using precompiled binaries?

How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "…

c++ installation clang ubuntu-12.04 precompiled-binaries
Is is possible to disable this warning in clang? warning: #pragma once in main file

warning: #pragma once in main file We're running our headers through clang to get a partial AST. Is it possible …

clang pragma suppress-warnings
Converting llvm .bc file to human readable .ll file

How can I generate human readable llvm bitcode (extension .ll) from the binary llvm bitcode (extension .bc) file?

c linux llvm clang x86-64
Clang-format line breaks

I'm looking for a clang-format setting to prevent the tool from removing line breaks. For example, I have my ColumnLimit …

c++ clang code-formatting clang-format