|
| 1 | +--- |
| 2 | +# clang-format version |
| 3 | +# - LLVM 14 |
| 4 | +# clang-format documentation |
| 5 | +# - http://clang.llvm.org/docs/ClangFormat.html |
| 6 | +# - -http://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 7 | + |
| 8 | +# Format Templates |
| 9 | +# - Chromium |
| 10 | +# - Google |
| 11 | +# - LLVM |
| 12 | +# - Mozilla |
| 13 | +# - WebKit |
| 14 | + |
| 15 | +Language: Cpp |
| 16 | +BasedOnStyle: LLVM |
| 17 | + |
| 18 | +AccessModifierOffset: -2 |
| 19 | +# AlignAfterOpenBracket: Align |
| 20 | +# AlignArrayOfStructures: None |
| 21 | +# AlignConsecutiveMacros: None |
| 22 | +# AlignConsecutiveAssignments: None |
| 23 | +# AlignConsecutiveBitFields: None |
| 24 | +# AlignConsecutiveDeclarations: None |
| 25 | +# AlignEscapedNewlines: Right |
| 26 | +# AlignOperands: Align |
| 27 | +# AlignTrailingComments: true |
| 28 | +# AllowAllArgumentsOnNextLine: true |
| 29 | +# AllowAllParametersOfDeclarationOnNextLine: true |
| 30 | +# AllowShortEnumsOnASingleLine: true |
| 31 | +# AllowShortBlocksOnASingleLine: Never |
| 32 | +# AllowShortCaseLabelsOnASingleLine: false |
| 33 | +# AllowShortFunctionsOnASingleLine: All |
| 34 | +# AllowShortLambdasOnASingleLine: All |
| 35 | +# AllowShortIfStatementsOnASingleLine: Never |
| 36 | +# AllowShortLoopsOnASingleLine: false |
| 37 | +# AlwaysBreakAfterDefinitionReturnType: None |
| 38 | +# AlwaysBreakAfterReturnType: None |
| 39 | +# AlwaysBreakBeforeMultilineStrings: false |
| 40 | +# AlwaysBreakTemplateDeclarations: MultiLine |
| 41 | +# AttributeMacros: |
| 42 | +# - __capability |
| 43 | +# BinPackArguments: true |
| 44 | +# BinPackParameters: true |
| 45 | +# BraceWrapping: |
| 46 | +# AfterCaseLabel: false |
| 47 | +# AfterClass: false |
| 48 | +# AfterControlStatement: Never |
| 49 | +# AfterEnum: false |
| 50 | +# AfterFunction: false |
| 51 | +# AfterNamespace: false |
| 52 | +# AfterObjCDeclaration: false |
| 53 | +# AfterStruct: false |
| 54 | +# AfterUnion: false |
| 55 | +# AfterExternBlock: false |
| 56 | +# BeforeCatch: false |
| 57 | +# BeforeElse: false |
| 58 | +# BeforeLambdaBody: false |
| 59 | +# BeforeWhile: false |
| 60 | +# IndentBraces: false |
| 61 | +# SplitEmptyFunction: true |
| 62 | +# SplitEmptyRecord: true |
| 63 | +# SplitEmptyNamespace: true |
| 64 | +# BreakBeforeBinaryOperators: None |
| 65 | +# BreakBeforeConceptDeclarations: true |
| 66 | +# BreakBeforeBraces: Attach |
| 67 | +# BreakBeforeInheritanceComma: false |
| 68 | +# BreakInheritanceList: BeforeColon |
| 69 | +# BreakBeforeTernaryOperators: true |
| 70 | +# BreakConstructorInitializersBeforeComma: false |
| 71 | +# BreakConstructorInitializers: BeforeColon |
| 72 | +# BreakAfterJavaFieldAnnotations: false |
| 73 | +# BreakStringLiterals: true |
| 74 | +ColumnLimit: 120 |
| 75 | +# CommentPragmas: '^ IWYU pragma:' |
| 76 | +# QualifierAlignment: Leave |
| 77 | +# CompactNamespaces: false |
| 78 | +# ConstructorInitializerIndentWidth: 4 |
| 79 | +# ContinuationIndentWidth: 4 |
| 80 | +# Cpp11BracedListStyle: true |
| 81 | +# DeriveLineEnding: true |
| 82 | +# DerivePointerAlignment: false |
| 83 | +# DisableFormat: false |
| 84 | +# EmptyLineAfterAccessModifier: Never |
| 85 | +# EmptyLineBeforeAccessModifier: LogicalBlock |
| 86 | +# ExperimentalAutoDetectBinPacking: false |
| 87 | +# PackConstructorInitializers: BinPack |
| 88 | +# BasedOnStyle: '' |
| 89 | +# ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 90 | +# AllowAllConstructorInitializersOnNextLine: true |
| 91 | +# FixNamespaceComments: true |
| 92 | +# ForEachMacros: |
| 93 | +# - foreach |
| 94 | +# - Q_FOREACH |
| 95 | +# - BOOST_FOREACH |
| 96 | +# IfMacros: |
| 97 | +# - KJ_IF_MAYBE |
| 98 | +# IncludeBlocks: Preserve |
| 99 | +# IncludeCategories: |
| 100 | +# - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 101 | +# Priority: 2 |
| 102 | +# SortPriority: 0 |
| 103 | +# CaseSensitive: false |
| 104 | +# - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 105 | +# Priority: 3 |
| 106 | +# SortPriority: 0 |
| 107 | +# CaseSensitive: false |
| 108 | +# - Regex: '.*' |
| 109 | +# Priority: 1 |
| 110 | +# SortPriority: 0 |
| 111 | +# CaseSensitive: false |
| 112 | +# IncludeIsMainRegex: '(Test)?$' |
| 113 | +# IncludeIsMainSourceRegex: '' |
| 114 | +# IndentAccessModifiers: true |
| 115 | +# IndentCaseLabels: false |
| 116 | +# IndentCaseBlocks: false |
| 117 | +# IndentGotoLabels: true |
| 118 | +# IndentPPDirectives: None |
| 119 | +# IndentExternBlock: AfterExternBlock |
| 120 | +# IndentRequires: false |
| 121 | +IndentWidth: 4 |
| 122 | +# IndentWrappedFunctionNames: false |
| 123 | +# InsertTrailingCommas: None |
| 124 | +# JavaScriptQuotes: Leave |
| 125 | +# JavaScriptWrapImports: true |
| 126 | +# KeepEmptyLinesAtTheStartOfBlocks: true |
| 127 | +# LambdaBodyIndentation: Signature |
| 128 | +# MacroBlockBegin: '' |
| 129 | +# MacroBlockEnd: '' |
| 130 | +# MaxEmptyLinesToKeep: 1 |
| 131 | +# NamespaceIndentation: None |
| 132 | +# ObjCBinPackProtocolList: Auto |
| 133 | +# ObjCBlockIndentWidth: 2 |
| 134 | +# ObjCBreakBeforeNestedBlockParam: true |
| 135 | +# ObjCSpaceAfterProperty: false |
| 136 | +# ObjCSpaceBeforeProtocolList: true |
| 137 | +# PenaltyBreakAssignment: 2 |
| 138 | +# PenaltyBreakBeforeFirstCallParameter: 19 |
| 139 | +# PenaltyBreakComment: 300 |
| 140 | +# PenaltyBreakFirstLessLess: 120 |
| 141 | +# PenaltyBreakOpenParenthesis: 0 |
| 142 | +# PenaltyBreakString: 1000 |
| 143 | +# PenaltyBreakTemplateDeclaration: 10 |
| 144 | +# PenaltyExcessCharacter: 1000000 |
| 145 | +# PenaltyReturnTypeOnItsOwnLine: 60 |
| 146 | +# PenaltyIndentedWhitespace: 0 |
| 147 | +# PointerAlignment: Right |
| 148 | +# PPIndentWidth: -1 |
| 149 | +# ReferenceAlignment: Pointer |
| 150 | +# ReflowComments: true |
| 151 | +# RemoveBracesLLVM: false |
| 152 | +# SeparateDefinitionBlocks: Leave |
| 153 | +# ShortNamespaceLines: 1 |
| 154 | +# SortIncludes: CaseSensitive |
| 155 | +# SortJavaStaticImport: Before |
| 156 | +# SortUsingDeclarations: true |
| 157 | +# SpaceAfterCStyleCast: false |
| 158 | +# SpaceAfterLogicalNot: false |
| 159 | +# SpaceAfterTemplateKeyword: true |
| 160 | +# SpaceBeforeAssignmentOperators: true |
| 161 | +# SpaceBeforeCaseColon: false |
| 162 | +# SpaceBeforeCpp11BracedList: false |
| 163 | +# SpaceBeforeCtorInitializerColon: true |
| 164 | +# SpaceBeforeInheritanceColon: true |
| 165 | +# SpaceBeforeParens: ControlStatements |
| 166 | +# SpaceBeforeParensOptions: |
| 167 | +# AfterControlStatements: true |
| 168 | +# AfterForeachMacros: true |
| 169 | +# AfterFunctionDefinitionName: false |
| 170 | +# AfterFunctionDeclarationName: false |
| 171 | +# AfterIfMacros: true |
| 172 | +# AfterOverloadedOperator: false |
| 173 | +# BeforeNonEmptyParentheses: false |
| 174 | +# SpaceAroundPointerQualifiers: Default |
| 175 | +# SpaceBeforeRangeBasedForLoopColon: true |
| 176 | +# SpaceInEmptyBlock: false |
| 177 | +# SpaceInEmptyParentheses: false |
| 178 | +# SpacesBeforeTrailingComments: 1 |
| 179 | +# SpacesInAngles: Never |
| 180 | +# SpacesInConditionalStatement: false |
| 181 | +# SpacesInContainerLiterals: true |
| 182 | +# SpacesInCStyleCastParentheses: false |
| 183 | +# SpacesInLineCommentPrefix: |
| 184 | +# Minimum: 1 |
| 185 | +# Maximum: -1 |
| 186 | +# SpacesInParentheses: false |
| 187 | +# SpacesInSquareBrackets: false |
| 188 | +# SpaceBeforeSquareBrackets: false |
| 189 | +# BitFieldColonSpacing: Both |
| 190 | +# Standard: Latest |
| 191 | +# StatementAttributeLikeMacros: |
| 192 | +# - Q_EMIT |
| 193 | +# StatementMacros: |
| 194 | +# - Q_UNUSED |
| 195 | +# - QT_REQUIRE_VERSION |
| 196 | +# TabWidth: 8 |
| 197 | +# UseCRLF: false |
| 198 | +# UseTab: Never |
| 199 | +# WhitespaceSensitiveMacros: |
| 200 | +# - STRINGIZE |
| 201 | +# - PP_STRINGIZE |
| 202 | +# - BOOST_PP_STRINGIZE |
| 203 | +# - NS_SWIFT_NAME |
| 204 | +# - CF_SWIFT_NAME |
| 205 | + |
| 206 | +... |
0 commit comments