summaryrefslogtreecommitdiffstats
path: root/bin/format_source
diff options
context:
space:
mode:
authorJohn Ravi <jjravi@ncsu.edu>2020-09-28 18:47:52 (GMT)
committerJohn Ravi <jjravi@ncsu.edu>2020-09-28 18:47:52 (GMT)
commitd674a5d6444d4c637650b690bc9c083ab23d75d6 (patch)
tree3b4ce9d5db51b811c86034944cfbbedabef06ac3 /bin/format_source
parent6062930447dcf43cef2d7901be6846fe512df95a (diff)
parent8ee8b7abb55bc8d901e31b3eef9ba35abb352814 (diff)
downloadhdf5-inactive/cu_dev.zip
hdf5-inactive/cu_dev.tar.gz
hdf5-inactive/cu_dev.tar.bz2
Merge branch 'develop' into cu_devinactive/cu_dev
Diffstat (limited to 'bin/format_source')
-rwxr-xr-xbin/format_source6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/format_source b/bin/format_source
new file mode 100755
index 0000000..b0b695c
--- /dev/null
+++ b/bin/format_source
@@ -0,0 +1,6 @@
+#!/bin/bash
+find . -type d \( -path ./config \) -prune \
+ -o -iname *.h -o -iname *.c -o -iname *.cpp -o -iname *.hpp \
+ | xargs clang-format -style=file -i -fallback-style=none
+
+exit 0 \ No newline at end of file