| 1 | # find src/ tools/ tests/ examples/ benchmark/ -type f -name '*.c' -o -name '*.cpp' -o -name '*.h' | xargs -i clang-format -i {} |
| 2 | |
| 3 | # need clang-format >= 10.0 |
| 4 | |
| 5 | AccessModifierOffset: -4 |
| 6 | AlignAfterOpenBracket: Align |
| 7 | AlignConsecutiveAssignments: false |
| 8 | # AlignConsecutiveBitFields: true |
| 9 | AlignConsecutiveDeclarations: false |
| 10 | AlignConsecutiveMacros: true |
| 11 | AlignEscapedNewlines: Left |
| 12 | # AlignOperands: AlignAfterOperator |
| 13 | AlignTrailingComments: true |
| 14 | AllowAllArgumentsOnNextLine: true |
| 15 | AllowAllConstructorInitializersOnNextLine: true |
| 16 | AllowAllParametersOfDeclarationOnNextLine: true |
| 17 | AllowShortBlocksOnASingleLine: Always |
| 18 | AllowShortCaseLabelsOnASingleLine: true |
| 19 | # AllowShortEnumsOnASingleLine: true |
| 20 | AllowShortFunctionsOnASingleLine: None |
| 21 | AllowShortIfStatementsOnASingleLine: WithoutElse |
| 22 | AllowShortLambdasOnASingleLine: All |
| 23 | AllowShortLoopsOnASingleLine: true |
| 24 | AlwaysBreakAfterReturnType: None |
| 25 | AlwaysBreakBeforeMultilineStrings: false |
| 26 | AlwaysBreakTemplateDeclarations: Yes |
| 27 | BinPackArguments: true |
| 28 | BinPackParameters: true |
| 29 | BraceWrapping: |
| 30 | AfterCaseLabel: true |
| 31 | AfterClass: true |
| 32 | AfterControlStatement: Always |
| 33 | AfterEnum: true |
| 34 | AfterFunction: true |
| 35 | AfterNamespace: false |
| 36 | AfterObjCDeclaration: false |
| 37 | AfterStruct: true |
| 38 | AfterUnion: true |
| 39 | AfterExternBlock: false |
| 40 | BeforeCatch: true |
| 41 | BeforeElse: true |
| 42 | # BeforeLambdaBody: false |
| 43 | # BeforeWhile: false |
| 44 | IndentBraces: false |
| 45 | SplitEmptyFunction: true |
| 46 | SplitEmptyRecord: true |
| 47 | SplitEmptyNamespace: false |
| 48 | BreakAfterJavaFieldAnnotations: true |
| 49 | BreakBeforeBinaryOperators: All |
| 50 | BreakBeforeBraces: Custom |
| 51 | BreakBeforeTernaryOperators: true |
| 52 | BreakConstructorInitializers: BeforeColon |
| 53 | BreakInheritanceList: BeforeColon |
| 54 | BreakStringLiterals: false |
| 55 | ColumnLimit: 0 |
| 56 | # CommentPragmas: |
| 57 | CompactNamespaces: false |
| 58 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 59 | ConstructorInitializerIndentWidth: 4 |
| 60 | ContinuationIndentWidth: 4 |
| 61 | Cpp11BracedListStyle: true |
| 62 | DeriveLineEnding: false |
| 63 | DerivePointerAlignment: false |
| 64 | # DisableFormat: |
| 65 | # ExperimentalAutoDetectBinPacking: |
| 66 | FixNamespaceComments: true |
| 67 | # ForEachMacros: |
| 68 | IncludeBlocks: Regroup |
| 69 | # IncludeCategories: |
| 70 | # IncludeIsMainRegex: |
| 71 | # IncludeIsMainSourceRegex: |
| 72 | # IndentCaseBlocks: false |
| 73 | IndentCaseLabels: false |
| 74 | # IndentExternBlock: NoIndent |
| 75 | IndentGotoLabels: false |
| 76 | IndentPPDirectives: None |
| 77 | IndentWidth: 4 |
| 78 | # IndentWrappedFunctionNames: 4 |
| 79 | # InsertTrailingCommas: None |
| 80 | # JavaImportGroups: |
| 81 | # JavaScriptQuotes |
| 82 | # JavaScriptWrapImports: |
| 83 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 84 | Language: Cpp |
| 85 | # MacroBlockBegin: |
| 86 | # MacroBlockEnd: |
| 87 | MaxEmptyLinesToKeep: 1 |
| 88 | NamespaceIndentation: None |
| 89 | # NamespaceMacros: |
| 90 | # ObjCBinPackProtocolList: |
| 91 | # ObjCBlockIndentWidth: |
| 92 | # ObjCBreakBeforeNestedBlockParam: |
| 93 | # ObjCSpaceAfterProperty: |
| 94 | # ObjCSpaceBeforeProtocolList: |
| 95 | # PenaltyBreakAssignment: |
| 96 | # PenaltyBreakBeforeFirstCallParameter: |
| 97 | # PenaltyBreakComment: |
| 98 | # PenaltyBreakFirstLessLess: |
| 99 | # PenaltyBreakString: |
| 100 | # PenaltyBreakTemplateDeclaration: |
| 101 | # PenaltyExcessCharacter: |
| 102 | # PenaltyReturnTypeOnItsOwnLine: |
| 103 | PointerAlignment: Left |
| 104 | # RawStringFormats: |
| 105 | ReflowComments: false |
| 106 | SortIncludes: false |
| 107 | SortUsingDeclarations: true |
| 108 | SpaceAfterCStyleCast: false |
| 109 | SpaceAfterLogicalNot: false |
| 110 | SpaceAfterTemplateKeyword: false |
| 111 | SpaceBeforeAssignmentOperators: true |
| 112 | SpaceBeforeCpp11BracedList: false |
| 113 | SpaceBeforeCtorInitializerColon: true |
| 114 | SpaceBeforeInheritanceColon: true |
| 115 | SpaceBeforeParens: ControlStatements |
| 116 | SpaceBeforeRangeBasedForLoopColon: true |
| 117 | SpaceBeforeSquareBrackets: false |
| 118 | SpaceInEmptyBlock: false |
| 119 | SpaceInEmptyParentheses: false |
| 120 | SpacesBeforeTrailingComments: 1 |
| 121 | SpacesInAngles: false |
| 122 | SpacesInCStyleCastParentheses: false |
| 123 | SpacesInConditionalStatement: false |
| 124 | SpacesInContainerLiterals: false |
| 125 | SpacesInParentheses: false |
| 126 | SpacesInSquareBrackets: false |
| 127 | Standard: c++03 |
| 128 | #StatementMacros: |
| 129 | TabWidth: 4 |
| 130 | # TypenameMacros: |
| 131 | UseCRLF: false |
| 132 | UseTab: Never |