[cfe-dev] How to build clang plugin
Kai Wang via cfe-dev
cfe-dev at lists.llvm.org
Tue Feb 9 22:00:32 PST 2016
Hi all,
I'm a beginner to clang. I want to write clang plugin to do some static
analysis.
I did "mkdir llvm-build" and built clang following these steps
http://clang.llvm.org/get_started.html
As a starting point, I'm trying clang/examples/PrintFunctionNames from
clang plugins tutorial http://clang.llvm.org/docs/ClangPlugins.html
I did "cd llvm-build & make PrintFunctionNames ", but it didn't work.
I also tried "cd llvm-build/tools/clang", and "make BUILD_EXAMPLES=1".
However, in either case I can not get "PrintFunctionNames.so"
Is there any guidance? Thank you.
--
Regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160209/07456443/attachment.html>
More information about the cfe-dev
mailing list