X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=.clang-format;h=dc7380ffd8684caf6e550b221898ef944d47820a;hb=47492386ece5b016a7a0ed06d6a44cc7d60adb55;hp=82e2abf156aed04137bcfc075a1f76cb082c6c6a;hpb=22567d107fffe7a6833b96cc99d531e5303b47dd;p=oweals%2Fminetest.git diff --git a/.clang-format b/.clang-format index 82e2abf15..dc7380ffd 100644 --- a/.clang-format +++ b/.clang-format @@ -1,12 +1,31 @@ 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