Skip to content
Snippets Groups Projects
Commit fac2e752 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Add `make clang-format`

parent 374f517b
Branches
No related merge requests found
......@@ -23,3 +23,11 @@
SUBDIRS = lib tests
ACLOCAL_AMFLAGS = -I m4
# Format source files using clang-format. Don't format source files
# under third-party directory since we are not responsible for thier
# coding style.
clang-format:
CLANGFORMAT=`git config --get clangformat.binary`; \
test -z $${CLANGFORMAT} && CLANGFORMAT="clang-format"; \
$${CLANGFORMAT} -i lib/*.{c,h} lib/includes/ngtcp2/*.h
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment