X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.clang-format;h=63f12b6c42adefca9fe9a5d7e5b34360ae79e018;hb=8d387433b14791db95e59127b5e6e30f58155c1e;hp=547df6a9501467c3223f56d8071a158fac51f639;hpb=a4874270f791fae8745cac23e153c59bef81bd1e;p=dragonfireclient.git diff --git a/.clang-format b/.clang-format index 547df6a95..63f12b6c4 100644 --- a/.clang-format +++ b/.clang-format @@ -1,13 +1,33 @@ BasedOnStyle: LLVM -IndentWidth: 8 +IndentWidth: 4 UseTab: Always -BreakBeforeBraces: Linux +TabWidth: 4 +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 +AccessModifierOffset: -4 ColumnLimit: 90 +AllowShortFunctionsOnASingleLine: InlineOnly +SortIncludes: false IncludeCategories: - Regex: '^".*' Priority: 2 - Regex: '^<.*' Priority: 1 +AlignAfterOpenBracket: DontAlign +ContinuationIndentWidth: 8 +ConstructorInitializerIndentWidth: 8 +BreakConstructorInitializers: AfterColon +AlwaysBreakTemplateDeclarations: Yes