]> git.lizzy.rs Git - minetest.git/blobdiff - .clang-format
Add core.compare_block_status function (#11247)
[minetest.git] / .clang-format
index 82e2abf156aed04137bcfc075a1f76cb082c6c6a..0db8ab1671aac78b3d93144dd666613cb9da52fd 100644 (file)
@@ -1,12 +1,32 @@
 BasedOnStyle: LLVM
 IndentWidth: 8
 UseTab: Always
-BreakBeforeBraces: Linux
+BreakBeforeBraces: Custom
+Standard: Cpp11
+BraceWrapping:
+  AfterClass: true
+  AfterControlStatement: false
+  AfterEnum: true
+  AfterFunction: true
+  AfterNamespace: true
+  AfterStruct: true
+  AfterUnion: true
+  BeforeCatch: false
+  BeforeElse: false
+FixNamespaceComments: false
 AllowShortIfStatementsOnASingleLine: false
 IndentCaseLabels: false
 AccessModifierOffset: -8
+ColumnLimit: 90
+AllowShortFunctionsOnASingleLine: InlineOnly
+SortIncludes: false
 IncludeCategories:
   - Regex:           '^".*'
     Priority:        2
   - Regex:           '^<.*'
     Priority:        1
+AlignAfterOpenBracket: DontAlign
+ContinuationIndentWidth: 16
+ConstructorInitializerIndentWidth: 16
+BreakConstructorInitializers: AfterColon
+AlwaysBreakTemplateDeclarations: Yes