X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.clang-format;h=63f12b6c42adefca9fe9a5d7e5b34360ae79e018;hb=b11c0a6721cd884d78b38b63797dfdb933004e03;hp=f1d51a04fa78146c2790e3c613d73bf53477eeeb;hpb=bf6569b57019d070246d947ed929cb2b5eb67faf;p=dragonfireclient.git diff --git a/.clang-format b/.clang-format index f1d51a04f..63f12b6c4 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,7 @@ BasedOnStyle: LLVM -IndentWidth: 8 +IndentWidth: 4 UseTab: Always +TabWidth: 4 BreakBeforeBraces: Custom Standard: Cpp11 BraceWrapping: @@ -13,11 +14,12 @@ BraceWrapping: AfterUnion: true BeforeCatch: false BeforeElse: false +FixNamespaceComments: false AllowShortIfStatementsOnASingleLine: false IndentCaseLabels: false -AccessModifierOffset: -8 +AccessModifierOffset: -4 ColumnLimit: 90 -AllowShortFunctionsOnASingleLine: Inline +AllowShortFunctionsOnASingleLine: InlineOnly SortIncludes: false IncludeCategories: - Regex: '^".*' @@ -25,4 +27,7 @@ IncludeCategories: - Regex: '^<.*' Priority: 1 AlignAfterOpenBracket: DontAlign -ContinuationIndentWidth: 16 +ContinuationIndentWidth: 8 +ConstructorInitializerIndentWidth: 8 +BreakConstructorInitializers: AfterColon +AlwaysBreakTemplateDeclarations: Yes