Skip to content

Commit

Permalink
Makefile: add 'analyze' target to run Clang's static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
aklomp committed Dec 16, 2014
1 parent 85414e9 commit 6d3c7ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ CFLAGS += -std=c89 -O3 -march=native -Wall -Wextra -pedantic
base64: main.c base64.c
$(CC) $(CFLAGS) -o $@ $^

.PHONY: clean
.PHONY: clean analyze

analyze: clean
scan-build --use-analyzer=`which clang` --status-bugs make

clean:
rm -f base64

0 comments on commit 6d3c7ba

Please sign in to comment.