Skip to content
This repository
tree: b51ae4df4e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 18 lines (15 sloc) 0.65 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash
#
# Based on the QRegExp-Editor script:
# https://gitorious.org/qregexp-editor/qregexp-editor/blobs/master/scripts/astyle-qregexp_editor
#
# apply razor-qt coding style to all c, cpp and header files in and below the current directory
#
# the coding style is defined in https://github.com/Razor-qt/razor-qt/wiki/Coding-Style
#
# requirements: installed astyle => 1.24

OPTS="--indent=spaces=4 --style=allman --add-brackets \
--indent-labels --pad-header --pad-oper --unpad-paren \
--keep-one-line-blocks --convert-tabs \
--indent-preprocessor --align-pointer=name"

astyle ${OPTS} $(find . -regex ".*\.\(c\|cpp\|h\)$")
Something went wrong with that request. Please try again.