aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-06 20:51:49 -0600
committerTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-06 20:51:49 -0600
commit5558c37a1a2626beaee5bb69c83d4013f2bcaf44 (patch)
treebebf701261c2cbd922a57a10f2d4096f67e224f5
parentMake better var names (diff)
downloadwg-dynamic-5558c37a1a2626beaee5bb69c83d4013f2bcaf44.tar.xz
wg-dynamic-5558c37a1a2626beaee5bb69c83d4013f2bcaf44.zip
Exclude capnproto from clang-format
Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1e2662..8fd0bbe 100644
--- a/Makefile
+++ b/Makefile
@@ -22,4 +22,6 @@ wg-dynamic-server.o: wg-dynamic-server.c
clean:
rm -f ${PROGS} *.o *~
style:
- clang-format -i --style=file *.c *.h
+ find . -type f \( -name "*.c" -or -name "*.h" \) -and \
+ -not \( -name "*.capnp.c" -or -name "*.capnp.h" \) | \
+ xargs clang-format -i --style=file