From 772c496bc8cff71226608a27ea414a1b46ac7a23 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Fri, 15 Sep 2017 17:45:35 +0200 Subject: [PATCH] undefine more not relevant macro for the current analysis --- tools/analysis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/analysis.sh b/tools/analysis.sh index 6f684c4e7..8490dc926 100755 --- a/tools/analysis.sh +++ b/tools/analysis.sh @@ -29,7 +29,7 @@ export SOURCES_TO_ANALYZE=`bash -c 'find ./build -type d -name CMakeFiles -prune find . -path ./build -prune -o -type f -regex "^[^z]*\.c" -print && \ find . -path ./build -prune -o -type f -regex "^[^z]*\.h" ! -name 'lapacke*.h' ! -name 'cblas*.h' -print | xargs'` # Undefine this because not relevant in our configuration -export UNDEFINITIONS="-UCHAMELEON_USE_CUBLAS_V2 -UCHAMELEON_USE_OPENCL" +export UNDEFINITIONS="-UCHAMELEON_USE_CUBLAS_V2 -UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun" # run cppcheck analysis cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} ${SOURCES_TO_ANALYZE} 2> chameleon-cppcheck.xml # run rats analysis -- GitLab