Set indentation to use spaces instead of tabs, add auto indentation script

This commit is contained in:
o9000 2017-04-13 14:06:37 +02:00
parent 8f67884119
commit c1e5a7b172
2 changed files with 4 additions and 1 deletions

View file

@ -63,4 +63,4 @@ SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: ForIndentation
UseTab: Never

3
format-code.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
find . '(' -name '*.h' -o -name '*.c' ')' -exec clang-format-3.7 -style=file -i '{}' \;