forked from LucaFulchir/libRaptorQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scan-build
11 lines (6 loc) · 880 Bytes
/
scan-build
1
2
3
4
5
6
7
8
9
#scan-build with clang:
mkdir build-scan &>/dev/null
rm -rf build-scan/*
cd build-scan
cmake -DCMAKE_CXX_COMPILER=/usr/lib/clang/c++-analyzer -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Debug -DPROFILING=OFF -DLTO=OFF ../
scan-build -enable-checker deadcode.DeadStores -enable-checker security.insecureAPI.UncheckedReturn -enable-checker security.FloatLoopCounter -enable-checker security.insecureAPI.rand -enable-checker cplusplus.NewDelete -enable-checker security.insecureAPI.getpw -enable-checker security.insecureAPI.gets -enable-checker security.insecureAPI.mkstemp -enable-checker security.insecureAPI.mktemp -enable-checker security.insecureAPI.vfork -enable-checker unix.API -enable-checker unix.Malloc -enable-checker unix.MallocSizeof -enable-checker unix.MismatchedDeallocator -enable-checker unix.cstring.BadSizeArg -enable-checker unix.cstring.NullArg make -j 9