Top "Clang" questions

For questions about the clang LLVM compiler front end.

Install libc++ on ubuntu

I am wondering what is the right/easy way to install a binary libc++ on Ubuntu, in my case Trusty …

clang libc++
How to view Clang AST?

I am trying to get hold on Clang. So, I would like to view the AST generated by Clang after …

clang llvm abstract-syntax-tree
g++ 4.6 issue no <bits/c++config.h> file as required by the header cstring

There is no file called bits/c++config.h in the c++ include directory which is required by the cstring …

c++ g++ clang cstring clang++
What predefined macro can I use to detect clang?

I'm trying to detect the compiler used to compile my source code. I can easily find predefined macros to check …

c macros clang c-preprocessor
Need to change include path for clang

When building with clang, it seems to be using gcc4.4.4 version of include files, while I want it to use …

c++ gcc clang include-path
Using OpenMP with clang

I have problems compiling OpenMP code using clang (both 3.6 and 3.8 ToT). I followed this blog post http://blog.llvm.org/2015/05/…

c++ c clang openmp
Clang linking with a .so file

I keep getting ld: library not found for -lchaiscript_stdlib-5.3.1.so clang: error: linker command failed with exit code 1 (use …

c++ linker clang chaiscript
how to make clang-format add new line before opening brace of a function?

I'm interested in putting an opening brace for functions (but not if statements and other contexts). For example void foo() { ... } …

coding-style clang clang-format
What's the proper way to enable AddressSanitizer in CMake that works in Xcode

I've added AddressSanitizer flag as follow: set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address") Everything builds and runs fine …

c++ cmake clang address-sanitizer
LLVM vs clang on OS X

I have a question concerning llvm, clang, and gcc on OS X. What is the difference between the llvm-gcc 4.2, llvm 2.0 …

c++ c gcc llvm clang