Add astyle config

This commit is contained in:
William Durand
2018-03-12 14:05:08 +01:00
parent c0b0266e09
commit cb0b7f3ebb
2 changed files with 32 additions and 0 deletions

28
.astylerc Normal file
View File

@@ -0,0 +1,28 @@
--lineend=linux
--style=google
--indent=spaces=4
--indent-col1-comments
--convert-tabs
--attach-return-type
--attach-namespaces
--attach-classes
--attach-inlines
--add-brackets
--add-braces
--align-pointer=type
--align-reference=type
--max-code-length=100
--break-after-logical
--pad-comma
--pad-oper
--unpad-paren
--break-blocks
--pad-header

View File

@@ -56,4 +56,8 @@ clean:
cd ~
rm -rf /tmp/opencv
astyle:
astyle --project=.astylerc --recursive *.cpp,*.h
.PHONY: astyle
install: download build clean