[cfe-dev] I get no reports from running "scan-build <args...> make -k

David Röthlisberger david at rothlis.net
Thu Jun 27 03:49:37 PDT 2013


On 27 Jun 2013, at 11:26, Duglas Mikle wrote:
> 
> Ok. Let's try step by step.
>  
> 1) PATH=/home/xxxx/programming/llvm-bld/Release+Debug+Asserts/bin:$PATH
> 2) export CXX=clang++
> 3) Important: mofify your Makefile:
> test: test.cpp
> clang++ test.cpp -o test
>  
> as
>  
> test: test.cpp
> $(CXX) test.cpp -o test

And read:

* The 1st paragraph under "Will it work with any build system?" of
  http://clang-analyzer.llvm.org/scan-build.html

* "Variables for specifying commands" in the "Makefile conventions"
  section of the GNU Make manual:
  http://www.gnu.org/software/make/manual/html_node/Command-Variables.html

* "Variables used by implicit rules" in the GNU Make manual:
  http://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#index-CXX-868





More information about the cfe-dev mailing list