|
| 1 | +--- |
| 2 | +Language: Cpp |
| 3 | +# BasedOnStyle: LLVM |
| 4 | + |
| 5 | +AccessModifierOffset: -4 |
| 6 | +AlignAfterOpenBracket: AlwaysBreak |
| 7 | +AlignConsecutiveAssignments: false |
| 8 | +AlignEscapedNewlines: DontAlign |
| 9 | +AlignOperands: true |
| 10 | +AlignTrailingComments: true |
| 11 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 12 | +AllowShortBlocksOnASingleLine: false |
| 13 | +AllowShortCaseLabelsOnASingleLine: false |
| 14 | +AllowShortFunctionsOnASingleLine: None |
| 15 | +AllowShortIfStatementsOnASingleLine: false |
| 16 | +AllowShortLambdasOnASingleLine: Empty |
| 17 | +AllowShortLoopsOnASingleLine: false |
| 18 | +AlwaysBreakAfterDefinitionReturnType: None |
| 19 | +AlwaysBreakAfterReturnType: None |
| 20 | +AlwaysBreakBeforeMultilineStrings: true |
| 21 | +AlwaysBreakTemplateDeclarations: MultiLine |
| 22 | +BinPackArguments: false |
| 23 | +BinPackParameters: false |
| 24 | +BraceWrapping: |
| 25 | + AfterCaseLabel: true |
| 26 | + AfterClass: true |
| 27 | + AfterControlStatement: true |
| 28 | + AfterEnum: true |
| 29 | + AfterFunction: true |
| 30 | + AfterNamespace: true |
| 31 | + AfterStruct: true |
| 32 | + AfterUnion: true |
| 33 | + AfterExternBlock: true |
| 34 | + BeforeCatch: true |
| 35 | + BeforeElse: true |
| 36 | + BeforeLambdaBody: true |
| 37 | + SplitEmptyFunction: false |
| 38 | + SplitEmptyRecord: false |
| 39 | + SplitEmptyNamespace: false |
| 40 | +BreakBeforeBinaryOperators: None |
| 41 | +BreakBeforeBraces: Custom |
| 42 | +BreakBeforeTernaryOperators: true |
| 43 | +BreakConstructorInitializers: AfterColon |
| 44 | +BreakStringLiterals: false |
| 45 | +ColumnLimit: 170 |
| 46 | +CommentPragmas: '^ IWYU pragma:' |
| 47 | +CompactNamespaces: true |
| 48 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 49 | +ConstructorInitializerIndentWidth: 4 |
| 50 | +ContinuationIndentWidth: 4 |
| 51 | +Cpp11BracedListStyle: false |
| 52 | +DerivePointerAlignment: false |
| 53 | +DisableFormat: false |
| 54 | +FixNamespaceComments: true |
| 55 | +ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 56 | +IncludeBlocks: Regroup |
| 57 | +IndentCaseLabels: false |
| 58 | +IncludeCategories: |
| 59 | + - Regex: '^"(stdafx.h|pch.h|precomp.h)"$' |
| 60 | + Priority: -1 |
| 61 | +IndentWidth: 4 |
| 62 | +IndentWrappedFunctionNames: false |
| 63 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 64 | +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$' |
| 65 | +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$' |
| 66 | +MaxEmptyLinesToKeep: 1 |
| 67 | +NamespaceIndentation: All |
| 68 | +ObjCBlockIndentWidth: 2 |
| 69 | +ObjCSpaceAfterProperty: false |
| 70 | +ObjCSpaceBeforeProtocolList: true |
| 71 | +PackConstructorInitializers: NextLineOnly |
| 72 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 73 | +PenaltyBreakComment: 300 |
| 74 | +PenaltyBreakFirstLessLess: 120 |
| 75 | +PenaltyBreakString: 2000 |
| 76 | +PenaltyExcessCharacter: 2 |
| 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: Never |
| 86 | +SpacesInContainerLiterals: true |
| 87 | +SpacesInCStyleCastParentheses: false |
| 88 | +SpacesInParentheses: false |
| 89 | +SpacesInSquareBrackets: false |
| 90 | +Standard: Latest |
| 91 | +TabWidth: 4 |
| 92 | +UseTab: Never |
| 93 | + |
| 94 | +AttributeMacros: [ |
| 95 | + CALLBACK, |
| 96 | +] |
| 97 | + |
| 98 | +StatementMacros: [ |
| 99 | + _Acquires_exclusive_lock_, |
| 100 | + _Acquires_lock_, |
| 101 | + _Acquires_nonreentrant_lock_, |
| 102 | + _Acquires_shared_lock_, |
| 103 | + _Analysis_assume_smart_lock_acquired_, |
| 104 | + _Analysis_assume_smart_lock_released_, |
| 105 | + _Create_lock_level_, |
| 106 | + _Detaches_lock_, |
| 107 | + _Function_class_, |
| 108 | + _Global_cancel_spin_lock_, |
| 109 | + _Global_critical_region_, |
| 110 | + _Global_interlock_, |
| 111 | + _Global_priority_region_, |
| 112 | + _Has_lock_kind_, |
| 113 | + _Has_lock_level_, |
| 114 | + _IRQL_always_function_max_, |
| 115 | + _IRQL_always_function_min_, |
| 116 | + _IRQL_raises_, |
| 117 | + _IRQL_requires_, |
| 118 | + _IRQL_requires_max_, |
| 119 | + _IRQL_requires_min_, |
| 120 | + _IRQL_requires_same_, |
| 121 | + _IRQL_restores_, |
| 122 | + _IRQL_restores_global_, |
| 123 | + _IRQL_saves_, |
| 124 | + _IRQL_saves_global_, |
| 125 | + _Lock_level_order_, |
| 126 | + _Moves_lock_, |
| 127 | + _Must_inspect_result_, |
| 128 | + _No_competing_thread_, |
| 129 | + _Post_same_lock_, |
| 130 | + _Post_writable_byte_size_, |
| 131 | + _Pre_satisfies_, |
| 132 | + _Releases_exclusive_lock_, |
| 133 | + _Releases_lock_, |
| 134 | + _Releases_nonreentrant_lock_, |
| 135 | + _Releases_shared_lock_, |
| 136 | + _Replaces_lock_, |
| 137 | + _Requires_exclusive_lock_held_, |
| 138 | + _Requires_lock_held_, |
| 139 | + _Requires_lock_not_held_, |
| 140 | + _Requires_no_locks_held_, |
| 141 | + _Requires_shared_lock_held_, |
| 142 | + _Ret_maybenull_, |
| 143 | + _Ret_range_, |
| 144 | + _Struct_size_bytes_, |
| 145 | + _Success_, |
| 146 | + _Swaps_locks_, |
| 147 | + _Use_decl_annotations_, |
| 148 | + _When_, |
| 149 | + |
| 150 | + DECLARE_ORDINAL_MAP, |
| 151 | + DECLARE_PROCNAME_MAP, |
| 152 | + DEFINE_ORDINAL_ENTRIES, |
| 153 | + DEFINE_ORDINAL_ENTRIES_ALTNAME, |
| 154 | + DEFINE_ORDINAL_ENTRIES_APISET, |
| 155 | + DEFINE_ORDINAL_MAP, |
| 156 | + DEFINE_PROCNAME_ENTRIES, |
| 157 | + DEFINE_PROCNAME_ENTRIES_ALTNAME, |
| 158 | + DEFINE_PROCNAME_ENTRIES_APISET, |
| 159 | + DEFINE_PROCNAME_MAP, |
| 160 | + DLOENTRY, |
| 161 | + DLOENTRY_APISET, |
| 162 | + DLPENTRY, |
| 163 | + DLPENTRY_APISET, |
| 164 | + |
| 165 | + RpcEndExcept, |
| 166 | + |
| 167 | + ActivatableClass, |
| 168 | + ActivatableClassWithFactory, |
| 169 | + ActivatableClassWithFactoryEx, |
| 170 | + ActivatableStaticOnlyFactory, |
| 171 | + ActivatableStaticOnlyFactoryEx, |
| 172 | + CoCreatableClass, |
| 173 | + CoCreatableClassWithFactory, |
| 174 | + CoCreatableClassWithFactoryEx, |
| 175 | + |
| 176 | + # Additional definitions for the WIL repo |
| 177 | + _Translates_NTSTATUS_to_HRESULT_, |
| 178 | + _Translates_Win32_to_HRESULT_, |
| 179 | + _Translates_last_error_to_HRESULT_, |
| 180 | + |
| 181 | + TEST_CASE, |
| 182 | + SECTION, |
| 183 | +] |
| 184 | + |
| 185 | +TypenameMacros: [ |
| 186 | + IFACEMETHOD, |
| 187 | + STDMETHOD, |
| 188 | + STDAPI_, |
| 189 | +] |
| 190 | + |
| 191 | +# Additional definitions for the WIL repo |
| 192 | +WhitespaceSensitiveMacros: [ |
| 193 | + __WI_CLANG_DISABLE_WARNING, |
| 194 | +] |
| 195 | + |
| 196 | +# TODO: Only supported by clang-format version 17+ |
| 197 | +# Macros: |
| 198 | +# - WI_NOEXCEPT=noexcept |
| 199 | +# - __R_FN_PARAMS_FULL=int x |
| 200 | +# - RESULT_NORETURN=[[noreturn]] |
| 201 | +--- |
| 202 | +Language: CSharp |
| 203 | +AlignAfterOpenBracket: AlwaysBreak |
| 204 | +AllowShortBlocksOnASingleLine: false |
| 205 | +AllowShortCaseLabelsOnASingleLine: false |
| 206 | +AllowShortFunctionsOnASingleLine: None |
| 207 | +AllowShortIfStatementsOnASingleLine: false |
| 208 | +AllowShortLoopsOnASingleLine: false |
| 209 | +BraceWrapping: |
| 210 | + AfterCaseLabel: true |
| 211 | + AfterClass: true |
| 212 | + AfterControlStatement: true |
| 213 | + AfterEnum: true |
| 214 | + AfterFunction: true |
| 215 | + AfterNamespace: true |
| 216 | + AfterStruct: true |
| 217 | + BeforeCatch: true |
| 218 | + BeforeElse: true |
| 219 | + SplitEmptyFunction: true |
| 220 | + SplitEmptyRecord: true |
| 221 | + SplitEmptyNamespace: true |
| 222 | +BreakBeforeBraces: Custom |
| 223 | +ColumnLimit: 130 |
| 224 | +DerivePointerAlignment: false |
| 225 | +IndentWidth: 4 |
| 226 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 227 | +PenaltyBreakComment: 300 |
| 228 | +PenaltyBreakFirstLessLess: 120 |
| 229 | +PenaltyBreakString: 2000 |
| 230 | +PenaltyExcessCharacter: 2 |
| 231 | +PenaltyReturnTypeOnItsOwnLine: 1000 |
| 232 | +PointerAlignment: Left |
| 233 | +TabWidth: 4 |
| 234 | +UseTab: Never |
| 235 | +... |
| 236 | + |
0 commit comments