|
| 1 | +# time-filter clang-format configuration |
| 2 | + |
| 3 | +Language: Cpp |
| 4 | +Standard: c++20 |
| 5 | + |
| 6 | +# Base style |
| 7 | +BasedOnStyle: Google |
| 8 | + |
| 9 | +# Indentation |
| 10 | +IndentWidth: 4 |
| 11 | +TabWidth: 4 |
| 12 | +UseTab: Never |
| 13 | +ContinuationIndentWidth: 4 |
| 14 | +IndentCaseLabels: true |
| 15 | +IndentPPDirectives: None |
| 16 | +NamespaceIndentation: None |
| 17 | + |
| 18 | +# Line width |
| 19 | +ColumnLimit: 100 |
| 20 | + |
| 21 | +# Braces |
| 22 | +BreakBeforeBraces: Attach |
| 23 | +Cpp11BracedListStyle: true |
| 24 | + |
| 25 | +# Alignment |
| 26 | +AlignAfterOpenBracket: Align |
| 27 | +AlignConsecutiveAssignments: false |
| 28 | +AlignConsecutiveDeclarations: false |
| 29 | +AlignEscapedNewlines: Left |
| 30 | +AlignOperands: true |
| 31 | +AlignTrailingComments: true |
| 32 | + |
| 33 | +# Short forms |
| 34 | +AllowShortBlocksOnASingleLine: Empty |
| 35 | +AllowShortCaseLabelsOnASingleLine: false |
| 36 | +AllowShortFunctionsOnASingleLine: Empty |
| 37 | +AllowShortIfStatementsOnASingleLine: Never |
| 38 | +AllowShortLoopsOnASingleLine: false |
| 39 | +AllowShortLambdasOnASingleLine: All |
| 40 | + |
| 41 | +# Breaking |
| 42 | +AlwaysBreakAfterReturnType: None |
| 43 | +AlwaysBreakBeforeMultilineStrings: false |
| 44 | +AlwaysBreakTemplateDeclarations: Yes |
| 45 | +BinPackArguments: true |
| 46 | +BinPackParameters: true |
| 47 | +BreakBeforeBinaryOperators: None |
| 48 | +BreakBeforeTernaryOperators: true |
| 49 | +BreakConstructorInitializers: BeforeColon |
| 50 | +BreakInheritanceList: BeforeColon |
| 51 | +BreakStringLiterals: true |
| 52 | + |
| 53 | +# Constructor initializers |
| 54 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 55 | +ConstructorInitializerIndentWidth: 4 |
| 56 | + |
| 57 | +# Spaces |
| 58 | +SpaceAfterCStyleCast: false |
| 59 | +SpaceAfterLogicalNot: false |
| 60 | +SpaceAfterTemplateKeyword: true |
| 61 | +SpaceBeforeAssignmentOperators: true |
| 62 | +SpaceBeforeCpp11BracedList: false |
| 63 | +SpaceBeforeCtorInitializerColon: true |
| 64 | +SpaceBeforeInheritanceColon: true |
| 65 | +SpaceBeforeParens: ControlStatements |
| 66 | +SpaceBeforeRangeBasedForLoopColon: true |
| 67 | +SpaceInEmptyBlock: false |
| 68 | +SpaceInEmptyParentheses: false |
| 69 | +SpacesBeforeTrailingComments: 2 |
| 70 | +SpacesInAngles: false |
| 71 | +SpacesInCStyleCastParentheses: false |
| 72 | +SpacesInContainerLiterals: false |
| 73 | +SpacesInParentheses: false |
| 74 | +SpacesInSquareBrackets: false |
| 75 | + |
| 76 | +# Pointer/Reference alignment |
| 77 | +DerivePointerAlignment: false |
| 78 | +PointerAlignment: Left |
| 79 | + |
| 80 | +# Include sorting |
| 81 | +IncludeBlocks: Regroup |
| 82 | +IncludeCategories: |
| 83 | + # Project headers (quoted) |
| 84 | + - Regex: '^"' |
| 85 | + Priority: 1 |
| 86 | + # Standard library headers |
| 87 | + - Regex: '^<[a-z_]+>' |
| 88 | + Priority: 3 |
| 89 | + # Other headers |
| 90 | + - Regex: '.*' |
| 91 | + Priority: 2 |
| 92 | +SortIncludes: true |
| 93 | + |
| 94 | +# Other |
| 95 | +AccessModifierOffset: -4 |
| 96 | +CompactNamespaces: false |
| 97 | +FixNamespaceComments: true |
| 98 | +MaxEmptyLinesToKeep: 1 |
| 99 | +ReflowComments: true |
| 100 | +SortUsingDeclarations: true |
0 commit comments