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 |
| 5 | Standard: Cpp03 |
| 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 |
| 24 | AccessModifierOffset: -4 |
| 25 | |
| 26 | SpaceAfterControlStatementKeyword: false |
| 27 | SpaceAfterCStyleCast: false |
| 28 | SpaceBeforeAssignmentOperators: true |
| 29 | SpaceBeforeParens: Never |
| 30 | SpaceInEmptyParentheses: false |
| 31 | SpacesBeforeTrailingComments: 1 |
| 32 | SpacesInAngles: false |
| 33 | SpacesInCStyleCastParentheses: false |
| 34 | SpacesInContainerLiterals: false |
| 35 | SpacesInParentheses: false |
| 36 | SpacesInSquareBrackets: false |
| 37 | Cpp11BracedListStyle: true |
| 38 | |
| 39 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 40 | MaxEmptyLinesToKeep: 1 |
| 41 | BinPackArguments: true |
| 42 | BinPackParameters: true |
| 43 | AlwaysBreakAfterReturnType: None |
| 44 | AlwaysBreakAfterDefinitionReturnType: None |
| 45 | AlwaysBreakTemplateDeclarations: true |
| 46 | BreakConstructorInitializersBeforeComma: true |
| 47 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 48 | ConstructorInitializerIndentWidth: 8 |
| 49 | |
| 50 | AllowShortIfStatementsOnASingleLine: false |
| 51 | AllowShortLoopsOnASingleLine: false |
| 52 | AllowShortBlocksOnASingleLine: true |
| 53 | AllowShortCaseLabelsOnASingleLine: true |
| 54 | AllowAllParametersOfDeclarationOnNextLine: true |
| 55 | AllowShortFunctionsOnASingleLine: All |
| 56 | |
| 57 | BreakBeforeBinaryOperators: false |
| 58 | BreakBeforeTernaryOperators: false |
| 59 | BreakStringLiterals: true |
| 60 | BreakBeforeBraces: Custom |
| 61 | BraceWrapping: |
| 62 | AfterClass: true |
| 63 | AfterEnum: true |
| 64 | AfterNamespace: true |
| 65 | AfterStruct: true |
| 66 | AfterUnion: true |
| 67 | |
| 68 | BeforeCatch: false |
| 69 | BeforeElse: false |
| 70 | IndentBraces: false |
| 71 | AfterFunction: false |
| 72 | AfterControlStatement: false |
| 73 | |
| 74 | # penalties not thought of yet |
| 75 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 76 | PenaltyBreakComment: 60 |
| 77 | PenaltyBreakString: 1000 |
| 78 | PenaltyBreakFirstLessLess: 120 |
| 79 | PenaltyExcessCharacter: 1000000 |
| 80 | PenaltyReturnTypeOnItsOwnLine: 1000 |