From 18e9e2cf1f70ef55d0390b0467a9ca0d8e39c31c Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 19 Jan 2013 20:17:56 -0800 Subject: [PATCH] Adding the astyle shell script Running this script will ensure that the C++ code follows our style guide. --- style_format.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 style_format.sh diff --git a/style_format.sh b/style_format.sh new file mode 100755 index 00000000..2988c68b --- /dev/null +++ b/style_format.sh @@ -0,0 +1,26 @@ +#!/bin/bash +astyle \ +--style=attach \ +--indent=spaces=2 \ +--indent-switches \ +--indent-col1-comments \ +--indent-preprocessor \ +--max-instatement-indent=80 \ +--break-blocks \ +--pad-oper \ +--pad-paren-in \ +--pad-header \ +--keep-one-line-blocks \ +--convert-tabs \ +--align-pointer=name \ +--align-reference=name \ +--suffix=none \ +--lineend=linux \ +--recursive \ +--exclude=gmock \ +--exclude=testdata \ +--exclude=ycm_core.cpp \ +--exclude=CustomAssert.h \ +--exclude=CustomAssert.cpp \ +"cpp/ycm/*.cpp" \ +"cpp/ycm/*.h"