hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 1 | # http://clang.llvm.org/docs/ClangFormatStyleOptions.html |
| 2 | |
| 3 | DisableFormat: false |
| 4 | Language: Cpp |
Dimitrij Mijoski | a7af1d6 | 2019-02-19 10:18:22 +0100 | [diff] [blame] | 5 | Standard: Cpp11 |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 6 | IndentWidth: 4 |
| 7 | TabWidth: 4 |
| 8 | UseTab: Never |
| 9 | ColumnLimit: 100 |
| 10 | ReflowComments: false |
| 11 | SortIncludes: false |
| 12 | |
| 13 | AlignConsecutiveAssignments: true |
| 14 | AlignConsecutiveDeclarations: true |
| 15 | AlignEscapedNewlinesLeft: false |
| 16 | AlignOperands: true |
| 17 | AlignTrailingComments: true |
| 18 | AlignAfterOpenBracket: true |
| 19 | DerivePointerAlignment: false |
| 20 | PointerAlignment: Left |
| 21 | IndentCaseLabels: true |
| 22 | ContinuationIndentWidth: 8 |
| 23 | NamespaceIndentation: Inner |
onqtam | 07e5363 | 2018-05-31 18:40:12 +0300 | [diff] [blame] | 24 | CompactNamespaces: true |
onqtam | 2d16073 | 2018-05-21 22:18:05 +0300 | [diff] [blame] | 25 | FixNamespaceComments: true |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 26 | AccessModifierOffset: -4 |
| 27 | |
| 28 | SpaceAfterControlStatementKeyword: false |
| 29 | SpaceAfterCStyleCast: false |
| 30 | SpaceBeforeAssignmentOperators: true |
| 31 | SpaceBeforeParens: Never |
| 32 | SpaceInEmptyParentheses: false |
| 33 | SpacesBeforeTrailingComments: 1 |
| 34 | SpacesInAngles: false |
| 35 | SpacesInCStyleCastParentheses: false |
| 36 | SpacesInContainerLiterals: false |
| 37 | SpacesInParentheses: false |
| 38 | SpacesInSquareBrackets: false |
| 39 | Cpp11BracedListStyle: true |
| 40 | |
| 41 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 42 | MaxEmptyLinesToKeep: 1 |
| 43 | BinPackArguments: true |
| 44 | BinPackParameters: true |
| 45 | AlwaysBreakAfterReturnType: None |
| 46 | AlwaysBreakAfterDefinitionReturnType: None |
| 47 | AlwaysBreakTemplateDeclarations: true |
| 48 | BreakConstructorInitializersBeforeComma: true |
| 49 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 50 | ConstructorInitializerIndentWidth: 8 |
| 51 | |
| 52 | AllowShortIfStatementsOnASingleLine: false |
| 53 | AllowShortLoopsOnASingleLine: false |
| 54 | AllowShortBlocksOnASingleLine: true |
| 55 | AllowShortCaseLabelsOnASingleLine: true |
| 56 | AllowAllParametersOfDeclarationOnNextLine: true |
| 57 | AllowShortFunctionsOnASingleLine: All |
| 58 | |
| 59 | BreakBeforeBinaryOperators: false |
| 60 | BreakBeforeTernaryOperators: false |
| 61 | BreakStringLiterals: true |
| 62 | BreakBeforeBraces: Custom |
| 63 | BraceWrapping: |
| 64 | AfterClass: true |
| 65 | AfterEnum: true |
onqtam | 07e5363 | 2018-05-31 18:40:12 +0300 | [diff] [blame] | 66 | AfterNamespace: false |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 67 | AfterStruct: true |
| 68 | AfterUnion: true |
| 69 | |
| 70 | BeforeCatch: false |
| 71 | BeforeElse: false |
| 72 | IndentBraces: false |
| 73 | AfterFunction: false |
| 74 | AfterControlStatement: false |
| 75 | |
| 76 | # penalties not thought of yet |
| 77 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 78 | PenaltyBreakComment: 60 |
| 79 | PenaltyBreakString: 1000 |
| 80 | PenaltyBreakFirstLessLess: 120 |
| 81 | PenaltyExcessCharacter: 1000000 |
| 82 | PenaltyReturnTypeOnItsOwnLine: 1000 |