summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-29 00:13:01 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-29 00:13:01 +0100
commit08deb6b161ef0cdda7ed8e49870b16f41d78eb4e (patch)
tree14a9dec045a2f01db4d41f57a0c85ae9182af7ca /scripts
parentMerge branch 'prova2' (diff)
downloadrekonq-08deb6b161ef0cdda7ed8e49870b16f41d78eb4e.tar.xz
Revert "Revert "pedantic""
Reapplied previous changes. Sorry for confusion. Time to bed.. This reverts commit 98f53721514116b876d18bf0a2da89d2a53cc97d.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/codingstyle.sh25
1 files changed, 20 insertions, 5 deletions
diff --git a/scripts/codingstyle.sh b/scripts/codingstyle.sh
index f0fb984f..0ed5fb17 100755
--- a/scripts/codingstyle.sh
+++ b/scripts/codingstyle.sh
@@ -1,13 +1,28 @@
#!/bin/sh
#
-# apply kdelibs coding style to all c, cpp and header files in src directory
+# apply rekonq coding style to all cpp and header files in src directory
+#
# requirements: installed astyle
#
-# The coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style
+# rekonq use kdelibs coding style, except for brackets, so while kdelibs coding style
+# is
+#
+# void foo() {
+# ...
+# }
+#
+# rekonq uses
+#
+# void foo()
+# {
+# ...
+# }
#
-# In rekonq we use some little different rules..
+# 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
@@ -24,4 +39,4 @@ astyle \
--convert-tabs \
--indent-preprocessor \
`find -type f -name '*.cpp'` `find -type f -name '*.h'`
-}
+