|
| 1 | +# find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i |
| 2 | + |
| 3 | +BasedOnStyle: LLVM |
| 4 | +Language: Cpp |
| 5 | + |
| 6 | +UseTab: Never |
| 7 | +IndentWidth: 4 |
| 8 | +TabWidth: 4 |
| 9 | +ContinuationIndentWidth: 4 |
| 10 | + |
| 11 | +ColumnLimit: 0 |
| 12 | +ReflowComments: true |
| 13 | + |
| 14 | +BreakBeforeBraces: Attach |
| 15 | +BreakBeforeCloseBracketBracedList: true |
| 16 | +BraceWrapping: |
| 17 | + AfterControlStatement: false |
| 18 | + AfterEnum: false |
| 19 | + AfterFunction: false |
| 20 | + AfterStruct: false |
| 21 | + AfterUnion: false |
| 22 | + AfterExternBlock: false |
| 23 | + BeforeElse: false |
| 24 | + BeforeCatch: false |
| 25 | + SplitEmptyFunction: false |
| 26 | + SplitEmptyRecord: false |
| 27 | + SplitEmptyNamespace: false |
| 28 | +IndentExternBlock: NoIndent |
| 29 | + |
| 30 | +AllowShortIfStatementsOnASingleLine: AllIfsAndElse |
| 31 | +AllowShortLoopsOnASingleLine: true |
| 32 | +AllowShortBlocksOnASingleLine: true |
| 33 | +AllowShortFunctionsOnASingleLine: Empty |
| 34 | +InsertBraces: true |
| 35 | + |
| 36 | +PointerAlignment: Left |
| 37 | +DerivePointerAlignment: false |
| 38 | +SpaceBeforeParens: ControlStatements |
| 39 | +SpacesInParentheses: false |
| 40 | +SpaceAfterCStyleCast: true |
| 41 | +SpacesInLineCommentPrefix: |
| 42 | + Minimum: 1 |
| 43 | + Maximum: 1 |
| 44 | +SpacesInContainerLiterals: true |
| 45 | + |
| 46 | +SortIncludes: Never |
| 47 | +IndentPPDirectives: BeforeHash |
| 48 | +PPIndentWidth: 4 |
| 49 | + |
| 50 | +IndentCaseLabels: true |
| 51 | + |
| 52 | +AlignConsecutiveAssignments: false |
| 53 | +AlignConsecutiveDeclarations: false |
| 54 | +AlignOperands: DontAlign |
| 55 | + |
| 56 | +BinPackParameters: false |
| 57 | +BinPackArguments: false |
| 58 | +AlignAfterOpenBracket: DontAlign |
| 59 | +BracedInitializerIndentWidth: 4 |
| 60 | +Cpp11BracedListStyle: Block |
| 61 | + |
| 62 | +ForEachMacros: |
| 63 | + - FF_LIST_FOR_EACH |
| 64 | + - yyjson_obj_foreach |
| 65 | + - yyjson_arr_foreach |
| 66 | + - yyjson_mut_obj_foreach |
| 67 | + - yyjson_mut_arr_foreach |
| 68 | + |
| 69 | +AttributeMacros: |
| 70 | + - FF_A_FALLTHROUGH |
| 71 | + - FF_A_DEPRECATED |
| 72 | + - FF_A_CLEANUP |
| 73 | + - FF_A_NODISCARD |
| 74 | + - FF_A_PRINTF |
| 75 | + - FF_A_SCANF |
| 76 | + - FF_A_NONNULL |
| 77 | + - FF_A_RETURNS_NONNULL |
| 78 | + - FF_A_UNUSED |
| 79 | + - FF_A_PACKED |
| 80 | + - FF_A_WEAK_IMPORT |
| 81 | + |
| 82 | +MaxEmptyLinesToKeep: 1 |
| 83 | +KeepEmptyLinesAtTheStartOfBlocks: false |
0 commit comments