From 5c499484a8f04f564c168f1b349b8fd1afba387b Mon Sep 17 00:00:00 2001 From: Grant Morphett Date: Thu, 5 Nov 2015 14:00:17 +1100 Subject: [PATCH] Added a default astyle options file and a linux script to run it. --- Tools/CodeStyle/ardupilot-astyle.sh | 6 ++++++ Tools/CodeStyle/astylerc | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100755 Tools/CodeStyle/ardupilot-astyle.sh create mode 100644 Tools/CodeStyle/astylerc diff --git a/Tools/CodeStyle/ardupilot-astyle.sh b/Tools/CodeStyle/ardupilot-astyle.sh new file mode 100755 index 0000000000..fdb149994a --- /dev/null +++ b/Tools/CodeStyle/ardupilot-astyle.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +DIR=$(dirname $(readlink -f $0)) + +astyle --options="${DIR}"/astylerc $* + diff --git a/Tools/CodeStyle/astylerc b/Tools/CodeStyle/astylerc new file mode 100644 index 0000000000..39c3a4fbc9 --- /dev/null +++ b/Tools/CodeStyle/astylerc @@ -0,0 +1,9 @@ +style=stroustrup +add-brackets +indent=spaces=4 +indent-col1-comments +min-conditional-indent=0 +suffix=none +lineend=linux +unpad-paren +pad-header