Adding the astyle shell script
Running this script will ensure that the C++ code follows our style guide.
This commit is contained in:
parent
1641bc9683
commit
18e9e2cf1f
26
style_format.sh
Executable file
26
style_format.sh
Executable file
@ -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"
|
Loading…
Reference in New Issue
Block a user