Top "Llvm-clang" questions

For questions about the clang LLVM compiler front end.

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
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
What do you need to install to use Clang on windows to build c++14 for 64 bit?

UPDATE: I've written a detailed tutorial that incorporates the top two answers on this question: http://blog.johannesmp.com/2015/09/01/installing-clang-on-windows-pt1/ …

windows c++11 gcc clang++ llvm-clang
clang: no out-of-line virtual method definitions (pure abstract C++ class)

I'm trying to compile the following simple C++ code using Clang-3.5: test.h: class A { public: A(); virtual ~A() = 0; }; test.…

c++ clang clang++ llvm-clang
How do I specify a clang-format file?

I just built clang 5.0.0 on a Redhat 6 machine and tried to run clang-format. I'm unable to get the -style option …

c++ clang llvm llvm-clang clang-format
Getting clang-tidy to fix header files

I'm in the process of moving a project currently compiling with gcc to clang, and have a bunch of warnings …

c++ clang++ llvm-clang automated-refactoring clang-tidy
Private module map for a framework

I'm using this answer to create a module map to create a module for CommonCrypto so I can use it …

xcode swift frameworks dylib llvm-clang
Loop unrolling in clang

I am trying to selectively unroll the second loop in the following program: #include <stdio.h> int main() { …

c++ optimization clang llvm-clang loop-unrolling
Why doesn't Clang come with standard library headers?

I downloaded Clang 3.6.2 from this website and am trying to set it up with Code::Blocks under Windows. Unfortunately, it …

c++ clang standard-library llvm-clang
What standard C library does Clang use? glibc, its own, or some other one?

I'm pretty sure glibc is the name of the standard C library implementation for gcc. But for LLVM/Clang I'm …

printf glibc llvm-clang libc c-standard-library