Skip to content

Commit

Permalink
scripts: Move run_clang_analyze to scripts/
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
  • Loading branch information
nekromant committed Jul 10, 2016
1 parent 55c5f65 commit 705b66a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 0 additions & 5 deletions run_clang_analyze.sh

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/run_clang_analyze.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Run this hacky script in project root directory to start
# clang static analysis. Adjust ccc-analyzer path if nesesary
CCC_ANALYZER=/usr/share/clang/scan-build-3.5/ccc-analyzer
mkdir -p build-clang-analyze/reports
cd build-clang-analyze
cmake -DCMAKE_C_COMPILER=${CCC_ANALYZER} $* ..
scan-build -o ./reports --keep-empty make

0 comments on commit 705b66a

Please sign in to comment.