Brian Salomon | b4a24e5 | 2016-12-08 09:21:00 -0500 | [diff] [blame] | 1 | --- |
| 2 | # Typical usage is to apply this to the lines you've modified in a local |
| 3 | # change. Stage your changes with "git add" and then run: |
| 4 | # $ git clang-format |
| 5 | # You can optionally use the "--" file filter to restrict formatting to certain |
| 6 | # files or directories. The tool will display the list of files that were |
| 7 | # modified. These have been modified without being staged. You can review the |
| 8 | # modifications using "git diff". |
| 9 | # |
| 10 | Language: Cpp |
| 11 | # BasedOnStyle: Google |
| 12 | AccessModifierOffset: -4 |
| 13 | AlignAfterOpenBracket: Align |
| 14 | AlignConsecutiveAssignments: false |
| 15 | AlignConsecutiveDeclarations: false |
| 16 | AlignEscapedNewlinesLeft: true |
| 17 | AlignOperands: true |
| 18 | AlignTrailingComments: true |
| 19 | AllowAllParametersOfDeclarationOnNextLine: true |
| 20 | AllowShortBlocksOnASingleLine: false |
| 21 | AllowShortCaseLabelsOnASingleLine: false |
| 22 | AllowShortFunctionsOnASingleLine: All |
Mike Klein | 8f45138 | 2018-05-24 13:27:13 +0000 | [diff] [blame] | 23 | AllowShortIfStatementsOnASingleLine: true |
| 24 | AllowShortLoopsOnASingleLine: true |
Brian Salomon | b4a24e5 | 2016-12-08 09:21:00 -0500 | [diff] [blame] | 25 | AlwaysBreakAfterDefinitionReturnType: None |
| 26 | AlwaysBreakAfterReturnType: None |
| 27 | AlwaysBreakBeforeMultilineStrings: true |
| 28 | AlwaysBreakTemplateDeclarations: true |
| 29 | BinPackArguments: true |
| 30 | BinPackParameters: true |
| 31 | BraceWrapping: |
| 32 | AfterClass: false |
| 33 | AfterControlStatement: false |
| 34 | AfterEnum: false |
| 35 | AfterFunction: false |
| 36 | AfterNamespace: false |
| 37 | AfterObjCDeclaration: false |
| 38 | AfterStruct: false |
| 39 | AfterUnion: false |
| 40 | BeforeCatch: false |
| 41 | BeforeElse: false |
| 42 | IndentBraces: false |
| 43 | BreakBeforeBinaryOperators: None |
| 44 | BreakBeforeBraces: Custom |
| 45 | BreakBeforeTernaryOperators: true |
| 46 | BreakConstructorInitializersBeforeComma: true |
| 47 | BreakAfterJavaFieldAnnotations: false |
| 48 | BreakStringLiterals: true |
| 49 | ColumnLimit: 100 |
| 50 | CommentPragmas: '^ IWYU pragma:' |
| 51 | ConstructorInitializerAllOnOneLineOrOnePerLine: true |
Brian Salomon | 544851b | 2016-12-14 09:17:55 -0500 | [diff] [blame] | 52 | ConstructorInitializerIndentWidth: 8 |
Brian Salomon | b4a24e5 | 2016-12-08 09:21:00 -0500 | [diff] [blame] | 53 | ContinuationIndentWidth: 8 |
| 54 | Cpp11BracedListStyle: true |
| 55 | DerivePointerAlignment: false |
| 56 | DisableFormat: false |
| 57 | ExperimentalAutoDetectBinPacking: true |
| 58 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 59 | IncludeCategories: |
| 60 | - Regex: '^<.*\.h>' |
| 61 | Priority: 1 |
| 62 | - Regex: '^<.*' |
| 63 | Priority: 2 |
| 64 | - Regex: '.*' |
| 65 | Priority: 3 |
| 66 | IncludeIsMainRegex: '([-_](test|unittest))?$' |
| 67 | IndentCaseLabels: true |
| 68 | IndentWidth: 4 |
| 69 | IndentWrappedFunctionNames: false |
| 70 | JavaScriptQuotes: Leave |
| 71 | JavaScriptWrapImports: true |
| 72 | KeepEmptyLinesAtTheStartOfBlocks: false |
Brian Salomon | c083e4f | 2017-01-09 09:37:06 -0500 | [diff] [blame] | 73 | MacroBlockBegin: 'SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START' |
| 74 | MacroBlockEnd: 'SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END' |
Brian Salomon | b4a24e5 | 2016-12-08 09:21:00 -0500 | [diff] [blame] | 75 | MaxEmptyLinesToKeep: 1 |
| 76 | NamespaceIndentation: None |
| 77 | ObjCBlockIndentWidth: 2 |
| 78 | ObjCSpaceAfterProperty: false |
| 79 | ObjCSpaceBeforeProtocolList: false |
| 80 | PenaltyBreakBeforeFirstCallParameter: 1 |
| 81 | PenaltyBreakComment: 300 |
| 82 | PenaltyBreakFirstLessLess: 120 |
| 83 | PenaltyBreakString: 1000 |
| 84 | PenaltyExcessCharacter: 1000000 |
| 85 | PenaltyReturnTypeOnItsOwnLine: 200 |
| 86 | PointerAlignment: Left |
| 87 | ReflowComments: true |
| 88 | SortIncludes: true |
| 89 | SpaceAfterCStyleCast: false |
| 90 | SpaceAfterTemplateKeyword: true |
| 91 | SpaceBeforeAssignmentOperators: true |
| 92 | SpaceBeforeParens: ControlStatements |
| 93 | SpaceInEmptyParentheses: false |
| 94 | SpacesBeforeTrailingComments: 2 |
| 95 | SpacesInAngles: false |
| 96 | SpacesInContainerLiterals: true |
| 97 | SpacesInCStyleCastParentheses: false |
| 98 | SpacesInParentheses: false |
| 99 | SpacesInSquareBrackets: false |
| 100 | Standard: Auto |
| 101 | TabWidth: 4 |
| 102 | UseTab: Never |
| 103 | ... |
| 104 | |