Top "Clang" questions

For questions about the clang LLVM compiler front end.

Missing C++ header <__debug> after updating OSX Command Line Tools 6.3

After updating to Command Line Tools 6.3 from the App Store, programs including <vector> or <iterator> which …

c++ xcode macos stl clang
Can I get an XML AST dump of C/C++ code with clang without using the compiler?

I managed to compile successfully clang for windows with cmake and visual studio 10. I would like to get an XML …

xml clang code-generation abstract-syntax-tree
RestKit/RestKit.h file not found error - version 0.10.0

I am losing my hair in my attempts to get RestKit to build and work. I get the dreaded "Lexical …

iphone ios header clang restkit
Clang-Tidy can't find my header files

new to clang and clang-tidy here. I have a project with this type of structure: project/ - build/ - cmake/ …

c++ clang clang-tidy
How to Build libcxx and libcxxabi by clang on CentOS 7

I want to use C++11 or C++14 with clang/clang++ on CentOS 7. How do I build this building environment?

c++ c++11 centos clang libc++
How to setup VS Code for C++ with clangd support?

Disclaimer: I am totally knew to VS Code, so, please, be gentle with me. :-) I am trying to set …

c++ visual-studio-code clang language-server-protocol
Error creating std::thread on Mac OS X with clang: "attempt to use a deleted function"

Consider my test code: #include <thread> class Foo { public: void threadFunc() {} void startThread() { _th = std::thread(&Foo::…

multithreading macos c++11 clang stdthread
Is it possible to debug a gcc-compiled program using lldb, or debug a clang-compiled program using gdb?

(Preface: I'm pretty new to C/C++ and I don't really know how debugging in native code actually works.) Some …

gcc gdb clang llvm lldb
clang -cc1 and system includes

I have the following file foo.cpp: #include <vector> struct MyClass { std::vector<int> v; }; It …

c++ clang include-path abstract-syntax-tree
gcc vs. clang: symbol stripping

gcc and AMD Open64 opencc both have a -s option to "strip symbol table and relocation information". So far I …

optimization gcc llvm clang strip