[cfe-dev] Clang Static Analyzer: how to use it for C++ application?

Liang Qi cavendish.qi at gmail.com
Tue Apr 26 02:40:34 PDT 2011


Hi, all,

I am just a newbie for Clang Static Analyzer. Then my question is not
that complex for you. I am using checker-256 on a Snow Leopard.

Here is my test source code, main.cpp: http://pastebin.com/AarMPKbs
And I have this CMakeLists.txt: http://pastebin.com/4B1e785d
After "cmake ." to generate Makefile, I called "scan-build" and get
this output: http://pastebin.com/f0GzQi3m

Could you give me any hint, for example, how to enable the checker for
cplusplus.experimental.Iterators?

Regards,
Liang

-- 
http://www.qiliang.net



More information about the cfe-dev mailing list