.clang-format (3043B)
1 # AUTOGENERATED COPYRIGHT HEADER START 2 # Copyright (C) 2018-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com> 3 # AUTOGENERATED COPYRIGHT HEADER END 4 5 # Basic Formatting 6 TabWidth: 4 7 UseTab: ForContinuationAndIndentation 8 ColumnLimit: 65535 9 #- 0 does not respect the original line breaks! 10 11 # Language 12 Language: Cpp 13 Standard: c++17 14 15 # Indentation 16 AccessModifierOffset: 0 17 ConstructorInitializerIndentWidth: 4 18 ContinuationIndentWidth: 4 19 IndentCaseLabels: false 20 #IndentPPDirectives: true 21 IndentWidth: 4 22 IndentWrappedFunctionNames: true 23 NamespaceIndentation: All 24 25 # Includes 26 #IncludeBlocks: Regroup 27 IncludeCategories: 28 - Regex: '^"warning-disable.hpp"$' 29 Priority: 50 30 - Regex: '^(<|")(config.hpp|common.hpp|ui-common.hpp|strings.hpp|version.hpp|obs.h)("|>)' 31 Priority: 100 32 - Regex: '^<obs-' 33 Priority: 150 34 - Regex: '^<' 35 Priority: 200 36 - Regex: '^<Q' 37 Priority: 250 38 - Regex: '^"' 39 Priority: 300 40 - Regex: '.moc"$' 41 Priority: 300 42 - Regex: '^"warning-enable.hpp"$' 43 Priority: 500 44 SortIncludes: true 45 46 # Alignment 47 AlignAfterOpenBracket: true 48 AlignConsecutiveAssignments: true 49 AlignConsecutiveDeclarations: true 50 AlignEscapedNewlines: Left 51 AlignOperands: true 52 AlignTrailingComments: false 53 DerivePointerAlignment: false 54 PointerAlignment: Left 55 56 # Wrapping and Breaking 57 AllowAllParametersOfDeclarationOnNextLine: true 58 AllowShortBlocksOnASingleLine: false 59 AllowShortCaseLabelsOnASingleLine: false 60 AllowShortFunctionsOnASingleLine: Empty 61 AllowShortIfStatementsOnASingleLine: false 62 AllowShortLoopsOnASingleLine: false 63 AlwaysBreakAfterReturnType: None 64 AlwaysBreakBeforeMultilineStrings: true 65 AlwaysBreakTemplateDeclarations: true 66 BraceWrapping: 67 AfterClass: false 68 AfterControlStatement: false 69 AfterEnum: false 70 # AfterExternBlock: false 71 AfterFunction: true 72 AfterNamespace: false 73 AfterStruct: false 74 AfterUnion: false 75 BeforeCatch: false 76 BeforeElse: false 77 SplitEmptyFunction: false 78 SplitEmptyRecord: false 79 SplitEmptyNamespace: false 80 BinPackArguments: true 81 BinPackParameters: true 82 BreakBeforeBinaryOperators: NonAssignment 83 BreakBeforeBraces: Custom 84 BreakBeforeTernaryOperators: true 85 BreakConstructorInitializers: BeforeColon 86 #BreakInheritanceList: BeforeColon 87 BreakStringLiterals: true 88 ConstructorInitializerAllOnOneLineOrOnePerLine: false 89 Cpp11BracedListStyle: true 90 91 # Spaces 92 SpaceAfterCStyleCast: false 93 SpaceAfterTemplateKeyword: false 94 SpaceBeforeAssignmentOperators: true 95 #SpaceBeforeCpp11BracedList: false 96 #SpaceBeforeCtorInitializerColon: true 97 #SpaceBeforeInheritanceColon: true 98 SpaceBeforeParens: ControlStatements 99 #SpaceBeforeRangeBasedForLoopColon: true 100 SpaceInEmptyParentheses: false 101 SpacesBeforeTrailingComments: 1 102 SpacesInAngles: false 103 SpacesInCStyleCastParentheses: false 104 SpacesInContainerLiterals: false 105 SpacesInParentheses: false 106 SpacesInSquareBrackets: false 107 108 # Other 109 CommentPragmas: '^(!FIXME!|!TODO!|ToDo:)' 110 CompactNamespaces: false 111 DisableFormat: false 112 FixNamespaceComments: true 113 #ForEachMacros: '' 114 KeepEmptyLinesAtTheStartOfBlocks: false 115 ReflowComments: false 116 SortUsingDeclarations: true