File: astyle-kdelibs

package info (click to toggle)
rocs 4:20.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,692 kB
  • sloc: cpp: 14,726; javascript: 784; xml: 598; makefile: 13; sh: 12
file content (13 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# apply kdelibs coding style to all c, cpp and header files in and below the current directory 
# 
# the coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style 
# 
# requirements: installed astyle 

astyle --indent=spaces=4 --brackets=linux \
      --indent-labels --pad-oper --unpad-paren --pad-header \
      --keep-one-line-statements --convert-tabs \
      --indent-preprocessor \
      `find -type f -name '*.c' -or -name '*.cpp' -or -name '*.cc' -or -name '*.h'`