Adding a scan-build command

scan-build http://clang-analyzer.llvm.org/scan-build.html is a clang
based tool designed to provide static analysis over C code files.
This commit is contained in:
Rémy Léone 2014-06-04 18:14:35 +02:00
parent 6fb7dd238e
commit a069f8f73d
2 changed files with 18 additions and 0 deletions

View File

@ -47,3 +47,5 @@ cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar
$(CONTIKI)/tools/cooja/dist/cooja.jar:
(cd $(CONTIKI)/tools/cooja; ant jar)
scan-build:
cd scan_build && scan-build $(MAKE)

View File

@ -0,0 +1,16 @@
EXAMPLESDIR=../../examples
TOOLSDIR=../../tools
EXAMPLES = \
hello-world/minimal-net \
hello-world/native \
eeprom-test/native \
example-shell/native \
tcp-socket/minimal-net \
telnet-server/minimal-net \
webserver/minimal-net \
wget/minimal-net \
TOOLS=
include ../Makefile.compile-test