Add code style formatting (pretty) and checker (pretty-check) targets. (#52)

* Add 'pretty' target to reformat sources to be compliant with code style.
* Add 'pretty-check' target to check if sources are compliant with code style.
* Update travis-ci script to use 'pretty-check' and enforce code style.
* The 'pretty' and 'pretty-check' targets rely on the 'astyle' tool.
This commit is contained in:
Jonathan Hui
2016-05-19 15:46:29 -07:00
parent 15a1bb55cd
commit d1b0fed201
11 changed files with 133 additions and 1 deletions
+6
View File
@@ -42,6 +42,12 @@ SUBDIRS = \
unit \
$(NULL)
# Always pretty (e.g. for 'make pretty') these subdirectories.
PRETTY_SUBDIRS = \
unit \
$(NULL)
if OPENTHREAD_BUILD_TESTS
if OPENTHREAD_BUILD_COVERAGE
CLEANFILES = $(wildcard *.gcda *.gcno)