Top "Clang" questions

For questions about the clang LLVM compiler front end.

Enable OpenMP support in clang in Mac OS X (sierra & Mojave)

I am using Mac OS X Sierra, and I found that clang (LLVM version 8.1.0 (clang-802.0.38)) does not support OpenMP: when …

macos clang llvm openmp
linking with clang++ on OS X generates lots of symbol not found errors

I'm trying to compile some C++ code (including C++11 features) on OS X 10.8 using the clang++ compiler. I have a …

c++ macos clang clang++
Confusing Template error

I've been playing with clang a while, and I stumbled upon "test/SemaTemplate/dependent-template-recover.cpp" (in the clang distribution) which …

c++ templates 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
Where are clang-format and clang-format.py in Mac OS X with Xcode Command Line Tools installed?

I am having a hard time finding clang-format and clang-format.py on my Mac OS 10.8.5 with Xcode 5 and its Command …

c++ macos clang clang-format
Where is libclang.so?

I am using linux mint an I have installed clang_complete using the makefile of Clang Complete. But it does …

vim clang libclang clang-complete
How do I make an infinite empty loop that won't be optimized away?

The C11 standard appears to imply that iteration statements with constant controlling expressions should not be optimized out. I'm taking …

c clang language-lawyer compiler-optimization
brew install clang-omp not working

I need to compile a C++ code with OpenMP on my Mac. Unfortunately the default version of clang installed on …

clang openmp homebrew osx-elcapitan
What is the difference? clang++ | clang -std=c++11

I had been erroneously using this command, which failed at the link step: $ clang -std=c++11 -stdlib=libc++ myInputFile.cpp …

c++ c c++11 clang clang++
Ignore all warnings in a specific file using LLVM/Clang

There are some files in my iOS project that have some warnings, and I want to ignore those warnings. I …

xcode clang compiler-warnings