Top "Clang" questions

For questions about the clang LLVM compiler front end.

What's the difference between GNU99 and C99 (Clang)?

I have saw the compiler option GNU99 and C99. What's the difference of them? Any detail documentation? (Clang, Xcode, Mac …

c compiler-construction option clang
How to use clang/llvm with Eclipse CDT

Is it possible to use Clang/LLVM with Eclipse CDT and if so, how is it configured to actually make …

eclipse-cdt llvm clang
How to enable C++17 on Mac?

I am able to update gcc on Linux to get -std=c++17 but cannot do the same on Mac. Is …

c++ macos clang c++17 darwin
macOS Clang C++17 filesystem header not found

I need to write a program using the (experimental) C++17 filesystem library but clang on my Mac (macOS 10.12.03) doesn't seem …

c++ macos gcc clang c++17
How to detect SSE/SSE2/AVX/AVX2/AVX-512/AVX-128-FMA/KCVI availability at compile-time?

I'm trying to optimize some matrix computations and I was wondering if it was possible to detect at compile-time if …

gcc clang sse avx avx512
How to detect LLVM and its version through #define directives?

The question is quite clear I think. I'm trying to write a compiler detection header to be able to include …

c clang llvm c-preprocessor
Clang on Windows

First of all, I've followed "Getting Started: Building and Running Clang". In particular, I've built it according to "Using Visual …

c++ windows mingw llvm clang
static variable link error

I'm writing C++ code on a mac. Why do I get this error when compiling?: Undefined symbols for architecture i386: "…

c++ xcode static-libraries clang static-methods
macOS 'wchar.h' File Not Found

Under OS X 10.9.5 using XCode 6.0.1 I am running into the following issue when I try to run make from the …

xcode macos clang
Compiling with Clang using Libc++ undefined references

The first couple are too long to reference. I get this error when I try to compile clang++ -stdlib=libc++ ../…

c++ clang std undefined-reference libc++