Set up auto-formatter
This commit is contained in:
1 parent
21cf170b5a
commit
5c49bb98ce
5 files changed
+37
No files matched your search
Executable
+2
@@ -0,0 +1,2 @@
|
||||
scripts_dir=`dirname $0`
|
||||
sh "$scripts_dir/sources.sh" | xargs -n 1 clang-format --dry-run --Werror
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
scripts_dir=`dirname $0`
|
||||
sh "$scripts_dir/sources.sh" | xargs -n 1 clang-format -i
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
root=`git rev-parse --show-toplevel`
|
||||
find "$root/engine" "$root/tests" -name '*.c' -o -name '*.h'
|
||||
Reference in new issue
Block a user