Top "Clang" questions

For questions about the clang LLVM compiler front end.

error: use of undeclared identifier 'errno_t'

Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which …

c clang c11 errno tr24731
On mac, g++ (clang) fails to search /usr/local/include and /usr/local/lib by default

I'm on a mac and I used homebrew to install gmp. Kyumins-iMac:gcjlib math4tots$ g++ main.cpp -lgmp -lgmpxx …

xcode macos gcc clang
Xcode: Should I Strip Debug Symbols During Copy?

The TestFlight SDK recommends setting Strip Debug Symbols During Copy to YES in Xcode Build Settings to enable the best …

xcode clang strip debug-symbols testflight
"Undefined symbols for architecture x86_64:"

I am attempting to compile this library on mac os x Mavericks 10.9.3 64-bit: http://www.openfec.org/downloads.html I …

xcode macos cmake clang dylib
Is there some literal dictionary or array syntax in Objective-C?

It's always been possible to create NSArrays (and NSDictionaries/NSNumber) with vararg method calls, like: [NSArray arrayWithObjects: @"a", @"b", @"c", …

objective-c llvm clang objective-c-literals
How to make the Clang Static Analyzer output its working from command line?

I'm running Clang 3.4 on Ubuntu 12.10 (from http://llvm.org/apt/). I ran the analyzer (clang --analyze) over some code, and …

c++ linux command-line clang clang-static-analyzer
Using clang-format in CLion

I'd like to format my code using clang-format in CLion. I've gone through the settings and haven't found any setting …

c++ clang clion clang-format
LLVM vs. GCC for iOS development

In latest iOS SDK, Apple provides three compiler options: GCC, LLVM with Clang and LLVM-GCC. I understand more or less …

iphone objective-c compiler-construction llvm clang
Why can't clang with libc++ in c++0x mode link this boost::program_options example?

Compiling this example code for boost::program_options: http://svn.boost.org/svn/boost/trunk/libs/program_options/example/first.…

c++ boost c++11 clang libc++
How to configure .ycm_extra_conf.py for current project include PATH

I installed YCM and syntastic for VIM, normally they work fine, but I have problem when it detect some errors …

c vim makefile clang youcompleteme