File: run_clazy_static_code_analysis.sh

package info (click to toggle)
indi 1.9.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,668 kB
  • sloc: cpp: 186,148; ansic: 30,833; xml: 869; sh: 282; makefile: 11
file content (9 lines) | stat: -rwxr-xr-x 404 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
# Create a separate build directory
rm -rf clazy_build
mkdir -p clazy_build
# Configure CMake
export CLANGXX=clang++-3.9
export CLAZY_CHECKS="level0,level1,no-non-pod-global-static,no-container-anti-pattern"
cmake -Bclazy_build -H. -DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_CXX_COMPILER=clazy -DCCACHE_SUPPORT=OFF -DCMAKE_BUILD_TYPE=Debug
# Do a Clang build with Clazy static analyzer
make -C clazy_build -j4