-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: Move run_clang_analyze to scripts/
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |