Top "Clang" questions

For questions about the clang LLVM compiler front end.

What's the c++ inline class?

I accidentally found that the Clang compiler allows : inline class AAA { }; in C++. What's this? PS. I reported this to …

c++ class inline clang
Add library search path to clang

How can I add /usr/local/lib to my clang library search path? This is what I see when I …

c++ clang macos-sierra
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

I'm building a substratum theme from https://github.com/substratum/template I'm getting the following errors on run: Build command …

android android-ndk clang android-sdk-manager
Building with CMake, Ninja and Clang on Windows

This question is from 2017 and probably outdated. Please take the provided instructions with a pinch of salt since better solutions …

windows cmake clang ninja
clang_complete in Vim

So after playing around with omnicpp, gccsense and clang_complete I couldn't get any of them to work. So I …

vim clang clang-complete
how to use #pragma clang diagnostics

I know that #pragma clang diagnostics can be used for ignoring some warnings generated by clang. But I don't know …

xcode clang pragma diagnostics
Suppressing "'…' is deprecated" when using respondsToSelector

I'm supporting 10.4+ by picking the most-current API at runtime: if ([fileManager respondsToSelector:@selector(removeItemAtPath:error:)]) [fileManager removeItemAtPath:downloadDir error:NULL]; …

objective-c cocoa xcode clang
Clang Cross Compiling for ARM?

Is it possible to set up Clang for cross compiling for the ARM processor? The host will likely be on …

c linux arm clang cross-compiling
Using Clang on Mingw 64bit

I want to have clang in addition to GCC in a MinGW-64bit environment on Windows 7, both using the standard …

c++ gcc mingw clang qmake
Using libstdc++ compiled libraries with clang++ -stdlib=libc++

I am working in C++ under Mac OS X (10.8.2) and I recently came up with the need of using C++11 …

c++ c++11 clang libstdc++ libc++