diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-10 21:37:12 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-11 17:20:52 +0300 |
commit | 14ed433027623e1ae31f4f874605580c8191b27d (patch) | |
tree | 0778451ab7378fde0988a68d3b23ff3fc93b4724 /scripts/cppcheck.sh | |
parent | Fix some clang-tidy warnings (diff) | |
download | rekonq-14ed433027623e1ae31f4f874605580c8191b27d.tar.xz |
Update cppcheck.sh
Diffstat (limited to 'scripts/cppcheck.sh')
-rwxr-xr-x[-rw-r--r--] | scripts/cppcheck.sh | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh index be081040..91ab007e 100644..100755 --- a/scripts/cppcheck.sh +++ b/scripts/cppcheck.sh @@ -1,39 +1,9 @@ #!/bin/sh -# -# apply rekonq coding style to all cpp and header files in src directory -# -# requirements: installed astyle -# -# rekonq use kdelibs coding style, except for brackets, so while kdelibs coding style -# is -# -# void foo() { -# ... -# } -# -# rekonq uses -# -# void foo() -# { -# ... -# } -# -# I like this way, for me more readable. :) -# -# Kdelibs coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style +# inline suppressions are enabled: use // cppcheck-suppress warningId +# --inconclusive: possible false positives +# --force: force checking of all configurations in files +# --verbose: output more detailed error information -PWD=$(pwd) +cppcheck --enable=all --inline-suppr --project=cmake-build-debug/compile_commands.json -cd $PWD -cd .. -cd src - -echo "cppcheck(ing)..." -cppcheck \ ---enable=all \ ---force \ ---verbose \ -. 2>/tmp/cppcheck.out - -echo "DONE. read output in /tmp/cppcheck.out" |