Top "Clang" questions

For questions about the clang LLVM compiler front end.

Complete list of clang flags?

Where can I find a complete list of clang flags? There are some, like -include-pch, that don't appear to be …

clang
How to generate assembly code with clang in Intel syntax?

As this question shows, with g++, I can do g++ -S -masm=intel test.cpp. Also, with clang, I can …

c++ assembly x86 clang intel
How to use CMAKE_EXPORT_COMPILE_COMMANDS?

I've been trying to use clang-modernize with CMAKE_EXPORT_COMPILE_COMMANDS as recommended in the help of this tool. With …

c++ cmake clang cppcheck
Getting Clang to work on windows

I have followed the following step by step guide and I've managed, after a bit of fiddling, to get clang …

c++ mingw eclipse-cdt codeblocks clang
Get Apple clang version and corresponding upstream LLVM version

I want to understand which version of clang Apple installed in my macbook, to see with c++11 and/or c++14 …

c++11 clang c++14 llvm-clang c++17
How to compile Clang on Windows

I have been trying to find a way to get Clang working on Windows but am having trouble. I get …

c++ c windows clang
How to compile/link Boost with clang++/libc++?

The answer to this question Why can't clang with libc++ in c++0x mode link this boost::program_options example? …

c++ boost clang libc++
Error enabling openmp - "ld: library not found for -lgomp" and Clang errors

I'm trying to get openmp to run in my program on Mavericks, however when I try to compile using the …

c++ gcc clang openmp osx-mavericks
Suppress warning "Category is implementing a method which will also be implemented by its primary class"

I was wondering how to suppress the warning: Category is implementing a method which will also be implemented by its …

objective-c clang
Is make_shared really more efficient than new?

I was experimenting with shared_ptr and make_shared from C++11 and programmed a little toy example to see what …

c++ shared-ptr clang libc++ make-shared