
E.g. for ```c++ constexpr int foo(int b) { int a = 1+1; for (int i = 0; i < b; ++i) { ++a; } return a; } ``` we now print: ``` foo 0x7cc8d4bf0580 frame size: 128 arg size: 8 rvo: 0 this arg: 0 0 InitScope 0 16 ConstSint32 1 32 ConstSint32 1 48 AddSint32 56 SetLocalSint32 40 72 ConstSint32 0 88 SetLocalSint32 104 104 GetPtrLocal 104 <-+ 120 LoadPopSint32 | 128 GetPtrParam 0 | 144 LoadPopSint32 | 152 LTSint32 | 160 Jf 80 --+ | 176 GetPtrLocal 40 | | 192 IncPopSint32 1 | | 208 GetPtrLocal 104 | | 224 IncPopSint32 1 | | 240 Jmp -152 | --+ 256 GetPtrLocal 40 <-+ 272 LoadPopSint32 280 Destroy 0 296 RetSint32 304 Destroy 0 320 NoRet ```
C language Family Front-end
Welcome to Clang.
This is a compiler front-end for the C family of languages (C, C++ and Objective-C) which is built as part of the LLVM compiler infrastructure project.
Unlike many other compiler frontends, Clang is useful for a number of things beyond just compiling code: we intend for Clang to be host to a number of different source-level tools. One example of this is the Clang Static Analyzer.
If you're interested in more (including how to build Clang) it is best to read the relevant websites. Here are some pointers:
-
Information on Clang: http://clang.llvm.org/
-
Building and using Clang: http://clang.llvm.org/get_started.html
-
Clang Static Analyzer: http://clang-analyzer.llvm.org/
-
Information on the LLVM project: http://llvm.org/
-
If you have questions or comments about Clang, a great place to discuss them is on the Clang forums:
-
If you find a bug in Clang, please file it in the LLVM bug tracker: