X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.clang-format;h=dc7380ffd8684caf6e550b221898ef944d47820a;hb=646af2ef5f52cc3a04ea806d13dd2a048395da88;hp=d2e2f2940f1a1bdce76b4eafd7c05b3f1e65b065;hpb=b4106ca58f723a64bcaec619b7f5c686f5e4abb2;p=minetest.git diff --git a/.clang-format b/.clang-format index d2e2f2940..dc7380ffd 100644 --- a/.clang-format +++ b/.clang-format @@ -2,7 +2,7 @@ BasedOnStyle: LLVM IndentWidth: 8 UseTab: Always BreakBeforeBraces: Custom -Standard: Cpp03 +Standard: Cpp11 BraceWrapping: AfterClass: true AfterControlStatement: false @@ -13,11 +13,12 @@ BraceWrapping: AfterUnion: true BeforeCatch: false BeforeElse: false +FixNamespaceComments: false AllowShortIfStatementsOnASingleLine: false IndentCaseLabels: false AccessModifierOffset: -8 ColumnLimit: 90 -AllowShortFunctionsOnASingleLine: Inline +AllowShortFunctionsOnASingleLine: InlineOnly SortIncludes: false IncludeCategories: - Regex: '^".*' @@ -26,3 +27,5 @@ IncludeCategories: Priority: 1 AlignAfterOpenBracket: DontAlign ContinuationIndentWidth: 16 +ConstructorInitializerIndentWidth: 16 +BreakConstructorInitializers: AfterColon