| 1 | --- |
| 2 | # this file work is a derivative of onecoreuap/net/.clang-format |
| 3 | # https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md |
| 4 | # |
| 5 | Language: Cpp |
| 6 | # BasedOnStyle: LLVM |
| 7 | AccessModifierOffset: -4 |
| 8 | AlignAfterOpenBracket: AlwaysBreak |
| 9 | AlignConsecutiveAssignments: false |
| 10 | AlignEscapedNewlines: DontAlign |
| 11 | AlignOperands: true |
| 12 | AlignTrailingComments: true |
| 13 | AllowAllParametersOfDeclarationOnNextLine: true |
| 14 | AllowShortBlocksOnASingleLine: false |
| 15 | AllowShortCaseLabelsOnASingleLine: false |
| 16 | AllowShortFunctionsOnASingleLine: None |
| 17 | AllowShortIfStatementsOnASingleLine: false |
| 18 | AllowShortLoopsOnASingleLine: false |
| 19 | AlwaysBreakAfterDefinitionReturnType: None |
| 20 | AlwaysBreakAfterReturnType: None |
| 21 | AlwaysBreakBeforeMultilineStrings: true |
| 22 | AlwaysBreakTemplateDeclarations: true |
| 23 | BinPackArguments: false |
| 24 | BinPackParameters: false |
| 25 | BreakBeforeBinaryOperators: None |
| 26 | BreakBeforeBraces: Custom |
| 27 | BraceWrapping: |
| 28 | AfterCaseLabel: true |
| 29 | AfterClass: true |
| 30 | AfterControlStatement: true |
| 31 | AfterEnum: true |
| 32 | AfterFunction: true |
| 33 | AfterNamespace: false |
| 34 | AfterStruct: true |
| 35 | AfterUnion: true |
| 36 | AfterExternBlock: false |
| 37 | BeforeCatch: true |
| 38 | BeforeElse: true |
| 39 | SplitEmptyFunction: true |
| 40 | SplitEmptyRecord: true |
| 41 | SplitEmptyNamespace: true |
| 42 | BreakBeforeTernaryOperators: true |
| 43 | BreakConstructorInitializers: AfterColon |
| 44 | ColumnLimit: 130 |
| 45 | CommentPragmas: '^ IWYU pragma:' |
| 46 | CompactNamespaces: true |
| 47 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 48 | ConstructorInitializerIndentWidth: 4 |
| 49 | ContinuationIndentWidth: 4 |
| 50 | Cpp11BracedListStyle: true |
| 51 | DerivePointerAlignment: false |
| 52 | DisableFormat: false |
| 53 | ExperimentalAutoDetectBinPacking: false |
| 54 | FixNamespaceComments: true |
| 55 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 56 | IncludeBlocks: Regroup |
| 57 | IncludeCategories: |
| 58 | - Regex: '^"(stdafx.h|pch.h|precomp.h)"$' |
| 59 | Priority: -1 |
| 60 | IndentCaseLabels: false |
| 61 | InsertBraces: true |
| 62 | IndentWidth: 4 |
| 63 | IndentWrappedFunctionNames: false |
| 64 | KeepEmptyLinesAtTheStartOfBlocks: true |
| 65 | MacroBlockBegin: '^BEGIN_COM_MAP$|^BEGIN_CONNECTION_POINT_MAP$|^BEGIN_HELPER_NODEMAP$|^BEGIN_MODULE$|^BEGIN_MSG_MAP$|^BEGIN_OBJECT_MAP$|^BEGIN_TEST_CLASS$|^BEGIN_TEST_METHOD$|^BEGIN_TEST_METHOD_PROPERTIES$' |
| 66 | MacroBlockEnd: '^END_COM_MAP$|^END_CONNECTION_POINT_MAP$|^END_HELPER_NODEMAP$|^END_MODULE$|^END_MSG_MAP$|^END_OBJECT_MAP$|^END_TEST_CLASS$|^END_TEST_METHOD$|^END_TEST_METHOD_PROPERTIES$' |
| 67 | MaxEmptyLinesToKeep: 1 |
| 68 | NamespaceIndentation: Inner |
| 69 | ObjCBlockIndentWidth: 2 |
| 70 | ObjCSpaceAfterProperty: false |
| 71 | ObjCSpaceBeforeProtocolList: true |
| 72 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 73 | PenaltyBreakComment: 300 |
| 74 | PenaltyBreakFirstLessLess: 120 |
| 75 | PenaltyBreakString: 1000 |
| 76 | PenaltyExcessCharacter: 1 |
| 77 | PenaltyReturnTypeOnItsOwnLine: 1000 |
| 78 | PointerAlignment: Left |
| 79 | SortIncludes: false |
| 80 | SpaceAfterCStyleCast: false |
| 81 | SpaceBeforeAssignmentOperators: true |
| 82 | SpaceBeforeParens: ControlStatements |
| 83 | SpaceInEmptyParentheses: false |
| 84 | SpacesBeforeTrailingComments: 1 |
| 85 | SpacesInAngles: false |
| 86 | SpacesInContainerLiterals: true |
| 87 | SpacesInCStyleCastParentheses: false |
| 88 | SpacesInParentheses: false |
| 89 | SpacesInSquareBrackets: false |
| 90 | Standard: Cpp11 |
| 91 | StatementMacros: [ |
| 92 | _Acquires_exclusive_lock_, |
| 93 | _Acquires_lock_, |
| 94 | _Acquires_nonreentrant_lock_, |
| 95 | _Acquires_shared_lock_, |
| 96 | _Analysis_assume_smart_lock_acquired_, |
| 97 | _Analysis_assume_smart_lock_released_, |
| 98 | _Create_lock_level_, |
| 99 | _Detaches_lock_, |
| 100 | _Function_class_, |
| 101 | _Global_cancel_spin_lock_, |
| 102 | _Global_critical_region_, |
| 103 | _Global_interlock_, |
| 104 | _Global_priority_region_, |
| 105 | _Has_lock_kind_, |
| 106 | _Has_lock_level_, |
| 107 | _IRQL_always_function_max_, |
| 108 | _IRQL_always_function_min_, |
| 109 | _IRQL_raises_, |
| 110 | _IRQL_requires_, |
| 111 | _IRQL_requires_max_, |
| 112 | _IRQL_requires_min_, |
| 113 | _IRQL_requires_same_, |
| 114 | _IRQL_restores_, |
| 115 | _IRQL_restores_global_, |
| 116 | _IRQL_saves_, |
| 117 | _IRQL_saves_global_, |
| 118 | _Lock_level_order_, |
| 119 | _Moves_lock_, |
| 120 | _Must_inspect_result_, |
| 121 | _No_competing_thread_, |
| 122 | _Post_same_lock_, |
| 123 | _Post_writable_byte_size_, |
| 124 | _Pre_satisfies_, |
| 125 | _Releases_exclusive_lock_, |
| 126 | _Releases_lock_, |
| 127 | _Releases_nonreentrant_lock_, |
| 128 | _Releases_shared_lock_, |
| 129 | _Replaces_lock_, |
| 130 | _Requires_exclusive_lock_held_, |
| 131 | _Requires_lock_held_, |
| 132 | _Requires_lock_not_held_, |
| 133 | _Requires_no_locks_held_, |
| 134 | _Requires_shared_lock_held_, |
| 135 | _Ret_maybenull_, |
| 136 | _Ret_range_, |
| 137 | _Success_, |
| 138 | _Swaps_locks_, |
| 139 | _Use_decl_annotations_, |
| 140 | _When_, |
| 141 | RpcEndExcept, |
| 142 | ] |
| 143 | TabWidth: 4 |
| 144 | TypenameMacros: [ |
| 145 | IFACEMETHOD, |
| 146 | STDMETHOD, |
| 147 | ] |
| 148 | UseTab: Never |
| 149 | ... |
| 150 |