File: astyle-kdelibs.bat

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (10 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
@echo off 
:: 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 

FOR /R %%G in (*.c) DO astyle --indent=spaces=4 --brackets=linux --indent-labels --pad=oper --unpad=paren  --one-line=keep-statements --convert-tabs --indent-preprocessor "%%G" 
FOR /R %%G in (*.cpp) DO astyle --indent=spaces=4 --brackets=linux --indent-labels --pad=oper --unpad=paren  --one-line=keep-statements --convert-tabs --indent-preprocessor "%%G" 
FOR /R %%G in (*.h) DO astyle --indent=spaces=4 --brackets=linux --indent-labels --pad=oper --unpad=paren  --one-line=keep-statements --convert-tabs --indent-preprocessor "%%G"