Browse Source

Add astyle options

pull/1/head
Timothy Pearson 10 years ago
parent
commit
8c91b5f088
  1. 24
      astyle/beautify_source_tree
  2. 14
      astyle/tde_astylerc

24
astyle/beautify_source_tree

@ -0,0 +1,24 @@
#!/bin/bash
if [[ $1 == "" ]]; then
echo "Please specify the source directory to beautify"
exit 1
fi
astyle \
--indent=tab \
--indent-classes \
--indent-switches \
--indent-cases \
--indent-namespaces \
--indent-labels\ \
--indent-col1-comments \
\
--unpad-paren \
\
--style=java \
--add-brackets \
--break-closing-brackets \
--keep-one-line-statements \
\
--recursive $1/*.c $1/*.cc $1/*.cpp $1/*.h

14
astyle/tde_astylerc

@ -0,0 +1,14 @@
--indent=tab
--indent-classes
--indent-switches
--indent-cases
--indent-namespaces
--indent-labels
--indent-col1-comments
--unpad-paren
--style=java
--add-brackets
--break-closing-brackets
--keep-one-line-statements
Loading…
Cancel
Save