diff --git a/.astylerc b/.astylerc new file mode 100644 index 00000000..e05f9df4 --- /dev/null +++ b/.astylerc @@ -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 diff --git a/Makefile b/Makefile index 40dacc3f..66e4065a 100644 --- a/Makefile +++ b/Makefile @@ -56,4 +56,8 @@ clean: cd ~ rm -rf /tmp/opencv +astyle: + astyle --project=.astylerc --recursive *.cpp,*.h +.PHONY: astyle + install: download build clean