Top "Clang" questions

For questions about the clang LLVM compiler front end.

How to deal with "exit-time destructor" warning in clang?

In my C++11 code I get the clang warning "Declaration requires an exit-time destructor" in the following case: static const …

c++ c++11 warnings clang destructor
Alternative to -pg with Clang?

I wish to profile CPU (sample if possible), with as small a performance impact as possible (hence similar to GCC's …

c gcc profiling clang gprof
clang_complete: where is the libclang.{so,dylib} in OS X?

I looked in the usual places (/usr/lib/,/Developer/usr/lib/,/usr/local/lib), and it isn't there. If it …

vim clang clang-complete
Apple Mach-O Linker Error in xcode 6

I was adding new UITableView delegate method in my code and suddenly i got one error while compiling like this .…

ios objective-c clang xcode6.1 mach-o
How to feed Visual Studio Clang-Format plugin with clang-format file?

So I downloaded, installed, and inserted into path the clang formatting plugin. I also tested it and it works for …

c++ visual-studio clang clang-format
Clang 3.1 and C++11 support status

From clang's C++11 support status website, http://clang.llvm.org/cxx_status.html , it says, "Initializer List" and "Lambda Expression" …

c++ c++11 llvm clang
How to turn makefile into JSON Compilation Database?

Say we have make files (not cmake/premake/ninja etc) for our project that do work for gcc and clang. …

c++ makefile compilation clang compilation-database
LLVM jit and native

I don't understand how LLVM JIT relates to normal no JIT compilation and the documentation isn't good. For example suppose …

clang llvm jit
How do I use C++ modules in Clang?

Modules are an alternative to #includes. Clang has a complete implementation for C++. How would I go about if I …

c++ clang c++20 c++-modules
gcov out of memory / mismatched version?

Just trying to get gcov up and running, getting the following error: $ gcov src/main.c -o build build/main.…

c code-coverage clang gcov