Skip to content

Commit

Permalink
Add astyle config
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Mar 15, 2018
1 parent c0b0266 commit cb0b7f3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .astylerc
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ clean:
cd ~
rm -rf /tmp/opencv

astyle:
astyle --project=.astylerc --recursive *.cpp,*.h
.PHONY: astyle

install: download build clean

0 comments on commit cb0b7f3

Please sign in to comment.