Did you know that you can navigate the posts by swiping left and right?

Clang usage tips

07 Dec 2015 . category: tech . Comments
#technique

What is clang?

a C language family frontend for LLVM
The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler. You can get and build the source today.

rewrite a .m to .cpp

clang -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk ./main.m

Using clang to analyze AST(abstract syntax tree) for your code.


Me

Kyle is a software developer in China. He likes mathematics,physics,art,computer science. In his spare time, he would like to read books, write some codes he likes, go swimming or hiking.