We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b0f01f + 9ba1abc commit 91af271Copy full SHA for 91af271
1 file changed
scripts/cppcheck.sh
@@ -29,9 +29,6 @@ CXSTD=( --std=c++17 --language=c++ )
29
CPPCHKCC=( "${CPPCHKOPT[@]}" "${CCSTD[@]}" )
30
CPPCHKCX=( "${CPPCHKOPT[@]}" "${CXSTD[@]}" )
31
32
-# Do this from the source directory
33
-cd "$(dirname "$0")/../src" || { echo "Could not change directory to '$(dirname "$0")/../src'"; exit 1; }
34
-
35
# Only process individual files if passed on the command line.
36
if [ $# -gt 0 ]; then
37
retval=0
@@ -53,6 +50,9 @@ if [ $# -gt 0 ]; then
53
50
exit $retval
54
51
fi
55
52
+# Do the rest from the source directory
+cd "$(dirname "$0")/../src" || { echo "Could not change directory to '$(dirname "$0")/../src'"; exit 1; }
+
56
docheck() {
57
local rv
58
rv=0
0 commit comments