Add clang format & skip build if no source file modified (#5433)
[oweals/minetest.git] / .clang-format
1 BasedOnStyle: LLVM
2 IndentWidth: 8
3 UseTab: Always
4 BreakBeforeBraces: Linux
5 AllowShortIfStatementsOnASingleLine: false
6 IndentCaseLabels: false
7 AccessModifierOffset: -8
8 IncludeCategories:
9   - Regex:           '^".*'
10     Priority:        2
11   - Regex:           '^<.*'
12     Priority:        1