| 1 | # See options listed at https://releases.llvm.org/12.0.1/tools/clang/docs/ClangFormatStyleOptions.html |
| 2 | --- |
| 3 | Language: Cpp |
| 4 | # BasedOnStyle: WebKit |
| 5 | AccessModifierOffset: -4 |
| 6 | AlignAfterOpenBracket: Align |
| 7 | AlignConsecutiveMacros: Consecutive |
| 8 | AlignConsecutiveAssignments: None |
| 9 | AlignConsecutiveBitFields: None |
| 10 | AlignConsecutiveDeclarations: None |
| 11 | AlignEscapedNewlines: Left |
| 12 | AlignOperands: DontAlign |
| 13 | AlignTrailingComments: true |
| 14 | AllowAllArgumentsOnNextLine: true |
| 15 | AllowAllConstructorInitializersOnNextLine: true |
| 16 | AllowAllParametersOfDeclarationOnNextLine: true |
| 17 | AllowShortEnumsOnASingleLine: false |
| 18 | AllowShortBlocksOnASingleLine: Empty |
| 19 | AllowShortCaseLabelsOnASingleLine: true |
| 20 | AllowShortFunctionsOnASingleLine: All |
| 21 | AllowShortLambdasOnASingleLine: All |
| 22 | AllowShortIfStatementsOnASingleLine: Never |
| 23 | AllowShortLoopsOnASingleLine: false |
| 24 | AlwaysBreakAfterReturnType: None |
| 25 | AlwaysBreakBeforeMultilineStrings: false |
| 26 | AlwaysBreakTemplateDeclarations: Yes |
| 27 | AttributeMacros: ["__capability", "__output", "__ununsed"] |
| 28 | BinPackArguments: true |
| 29 | BinPackParameters: true |
| 30 | BitFieldColonSpacing: Both |
| 31 | BraceWrapping: |
| 32 | AfterCaseLabel: false |
| 33 | AfterClass: true |
| 34 | AfterControlStatement: MultiLine |
| 35 | AfterEnum: true |
| 36 | AfterFunction: true |
| 37 | AfterNamespace: false |
| 38 | AfterStruct: true |
| 39 | AfterUnion: true |
| 40 | AfterExternBlock: false |
| 41 | BeforeCatch: true |
| 42 | BeforeElse: true |
| 43 | BeforeLambdaBody: false |
| 44 | BeforeWhile: false |
| 45 | IndentBraces: false |
| 46 | SplitEmptyFunction: true |
| 47 | SplitEmptyRecord: true |
| 48 | SplitEmptyNamespace: true |
| 49 | BreakBeforeBinaryOperators: All |
| 50 | BreakBeforeConceptDeclarations: true |
| 51 | BreakBeforeBraces: Custom |
| 52 | BreakBeforeInheritanceComma: false |
| 53 | BreakInheritanceList: BeforeColon |
| 54 | BreakBeforeTernaryOperators: true |
| 55 | BreakConstructorInitializersBeforeComma: false |
| 56 | BreakConstructorInitializers: BeforeColon |
| 57 | BreakStringLiterals: true |
| 58 | ColumnLimit: 0 |
| 59 | # CommentPragmas are a regex pattern indicating the comment is not be touched by the formatter |
| 60 | CommentPragmas: "^ Include gaurd .*" |
| 61 | CompactNamespaces: false |
| 62 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 63 | ConstructorInitializerIndentWidth: 4 |
| 64 | ContinuationIndentWidth: 4 |
| 65 | Cpp11BracedListStyle: true |
| 66 | DeriveLineEnding: false |
| 67 | DerivePointerAlignment: false |
| 68 | DisableFormat: false |
| 69 | EmptyLineBeforeAccessModifier: Always |
| 70 | EmptyLineAfterAccessModifier: Leave |
| 71 | ExperimentalAutoDetectBinPacking: false |
| 72 | FixNamespaceComments: true |
| 73 | IncludeBlocks: Preserve |
| 74 | IncludeCategories: |
| 75 | - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 76 | Priority: 2 |
| 77 | SortPriority: 0 |
| 78 | CaseSensitive: false |
| 79 | - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 80 | Priority: 3 |
| 81 | SortPriority: 0 |
| 82 | CaseSensitive: false |
| 83 | - Regex: ".*" |
| 84 | Priority: 1 |
| 85 | SortPriority: 0 |
| 86 | CaseSensitive: false |
| 87 | IncludeIsMainRegex: "(Test)?$" |
| 88 | IncludeIsMainSourceRegex: "" |
| 89 | IndentAccessModifiers: false |
| 90 | IndentCaseLabels: true |
| 91 | IndentCaseBlocks: false |
| 92 | IndentGotoLabels: false |
| 93 | IndentPPDirectives: BeforeHash |
| 94 | IndentExternBlock: AfterExternBlock |
| 95 | IndentRequires: false |
| 96 | IndentWidth: 4 |
| 97 | IndentWrappedFunctionNames: false |
| 98 | InsertTrailingCommas: None |
| 99 | KeepEmptyLinesAtTheStartOfBlocks: true |
| 100 | MacroBlockBegin: "" |
| 101 | MacroBlockEnd: "" |
| 102 | MaxEmptyLinesToKeep: 1 |
| 103 | NamespaceIndentation: Inner |
| 104 | PenaltyBreakAssignment: 2 |
| 105 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 106 | PenaltyBreakComment: 300 |
| 107 | PenaltyBreakFirstLessLess: 120 |
| 108 | PenaltyBreakString: 1000 |
| 109 | PenaltyBreakTemplateDeclaration: 10 |
| 110 | PenaltyExcessCharacter: 1000000 |
| 111 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 112 | PenaltyIndentedWhitespace: 0 |
| 113 | PointerAlignment: Left |
| 114 | ReferenceAlignment: Pointer |
| 115 | ReflowComments: true |
| 116 | SpacesInLineCommentPrefix: |
| 117 | Maximum: -1 |
| 118 | Minimum: 0 |
| 119 | ShortNamespaceLines: 0 |
| 120 | # Sort**** is about sorting include/using statements alphabetically |
| 121 | SortIncludes: false |
| 122 | SortUsingDeclarations: false |
| 123 | SpaceAfterCStyleCast: false |
| 124 | SpaceAfterLogicalNot: false |
| 125 | SpaceAfterTemplateKeyword: false |
| 126 | SpaceBeforeAssignmentOperators: true |
| 127 | SpaceBeforeCaseColon: false |
| 128 | SpaceBeforeCpp11BracedList: true |
| 129 | SpaceBeforeCtorInitializerColon: true |
| 130 | SpaceBeforeInheritanceColon: true |
| 131 | SpaceBeforeParens: ControlStatements |
| 132 | SpaceAroundPointerQualifiers: Default |
| 133 | SpaceBeforeRangeBasedForLoopColon: true |
| 134 | SpaceInEmptyBlock: false |
| 135 | SpaceInEmptyParentheses: false |
| 136 | SpacesBeforeTrailingComments: 1 |
| 137 | SpacesInAngles: false |
| 138 | SpacesInConditionalStatement: false |
| 139 | SpacesInContainerLiterals: false |
| 140 | SpacesInCStyleCastParentheses: false |
| 141 | SpacesInParentheses: false |
| 142 | SpacesInSquareBrackets: false |
| 143 | SpaceBeforeSquareBrackets: false |
| 144 | Standard: c++11 |
| 145 | StatementAttributeLikeMacros: [emit] |
| 146 | StatementMacros: [Q_UNUSED, QT_REQUIRE_VERSION] |
| 147 | TabWidth: 4 |
| 148 | UseCRLF: false |
| 149 | UseTab: Never |
| 150 | WhitespaceSensitiveMacros: |
| 151 | - PRIPSTR |
| 152 | - STRINGIZE |
| 153 | - PP_STRINGIZE |
| 154 | - BOOST_PP_STRINGIZE |
| 155 | - NS_SWIFT_NAME |
| 156 | - CF_SWIFT_NAME |