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