File: cppcheck.sh

package info (click to toggle)
rekonq 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,060 kB
  • ctags: 1,155
  • sloc: cpp: 12,319; sh: 115; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"