diff options
author | Stephan Vedder <vedder@mbits.info> | 2022-05-06 11:30:10 +0300 |
---|---|---|
committer | Stephan Vedder <vedder@mbits.info> | 2022-05-06 15:29:43 +0300 |
commit | 4c726a3e8b86a7e467e9f1c6c009a03f5b2f53e9 (patch) | |
tree | 5cfb165ca654acce9d11abc6e7660fab91ce1420 | |
parent | 445d165b4693cc6928e7ecb3dc79029ca1cd2f9e (diff) |
Add clang-format file
-rw-r--r-- | .clang-format | 4 | ||||
-rw-r--r-- | Tools/format_source.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..91db444a --- /dev/null +++ b/.clang-format @@ -0,0 +1,4 @@ +BasedOnStyle: Google +SortIncludes: Never # These can break compilation +IndentWidth: 4 +ColumnLimit: 0 # We don't want to add too many additional linebreaks for now
\ No newline at end of file diff --git a/Tools/format_source.sh b/Tools/format_source.sh new file mode 100644 index 00000000..edeac847 --- /dev/null +++ b/Tools/format_source.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +find ./Source/ -iname *.h -o -iname *.cpp | xargs clang-format -i
\ No newline at end of file |