summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-30 18:08:25 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-30 18:08:25 +0200
commit54e258db126292e0f11201095e1f5b67b00e9833 (patch)
tree79b840b5f95ad0b741da2bc6911a1bcabf381621 /scripts
parentrekonq 0.4.66 (diff)
downloadrekonq-54e258db126292e0f11201095e1f5b67b00e9833.tar.xz
QLatin1String -> QL1S
added cppcheck script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cppcheck.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh
new file mode 100644
index 00000000..be081040
--- /dev/null
+++ b/scripts/cppcheck.sh
@@ -0,0 +1,39 @@
+#!/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
+
+
+PWD=$(pwd)
+
+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"