I need some simple example to start using clang. I downloaded llvm and clang and built:
mkdir llvm-build
cd llvm-build
../llvm/configure
make
I
I followed the instructions at http://clang.llvm.org/get_started.html with two exceptions:
I issued cmake as so :
cd build
cmake -DLLVM_BUILD_EXAMPLES=1 -DCLANG_BUILD_EXAMPLES=1 ..
After that (and compiling of course (make -j8)) I could find the examples in the build dir :
find -iname '*printfunctionname*'
./lib/PrintFunctionNames.so
...