summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarijn van der Werf <marijn.vanderwerf@gmail.com>2017-06-21 15:19:18 +0200
committerMarijn van der Werf <marijn.vanderwerf@gmail.com>2017-06-22 23:03:41 +0200
commit0086f6e37ab487f558cc71f791c514f94ba80e0c (patch)
tree62387c2798d258da850d9ec4f84a61721fd407b5 /include
parentb0644bf985dc22b1a9649ddb1634068a7ea14438 (diff)
Add formatting rules
Diffstat (limited to 'include')
-rw-r--r--include/.clang-format24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/.clang-format b/include/.clang-format
new file mode 100644
index 000000000..995d5d96d
--- /dev/null
+++ b/include/.clang-format
@@ -0,0 +1,24 @@
+BasedOnStyle: LLVM
+AllowShortFunctionsOnASingleLine: None
+BreakBeforeBraces: Allman
+ColumnLimit: 100
+UseTab: Never
+IndentWidth: 4
+TabWidth: 4
+AlignAfterOpenBracket: DontAlign
+Cpp11BracedListStyle: false
+BreakStringLiterals: false
+IndentCaseLabels: false
+BinPackArguments: false
+BinPackParameters: false
+IncludeCategories:
+ - Regex: '^"gba/types\.h"$'
+ Priority: -4
+ - Regex: '^"global\.h"$'
+ Priority: -3
+ - Regex: '^"gba/gba\.h"$'
+ Priority: -2
+ - Regex: '^"gba/'
+ Priority: -1
+ - Regex: '.\*'
+ Priority: 1