blob: ff81590e3c589414e0cf66dda0c2202ddba01f18 [file] [log] [blame]
Brian Salomonb4a24e52016-12-08 09:21:00 -05001---
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#
10Language: Cpp
11# BasedOnStyle: Google
12AccessModifierOffset: -4
13AlignAfterOpenBracket: Align
14AlignConsecutiveAssignments: false
15AlignConsecutiveDeclarations: false
16AlignEscapedNewlinesLeft: true
17AlignOperands: true
18AlignTrailingComments: true
19AllowAllParametersOfDeclarationOnNextLine: true
20AllowShortBlocksOnASingleLine: false
21AllowShortCaseLabelsOnASingleLine: false
22AllowShortFunctionsOnASingleLine: All
23AllowShortIfStatementsOnASingleLine: true
24AllowShortLoopsOnASingleLine: true
25AlwaysBreakAfterDefinitionReturnType: None
26AlwaysBreakAfterReturnType: None
27AlwaysBreakBeforeMultilineStrings: true
28AlwaysBreakTemplateDeclarations: true
29BinPackArguments: true
30BinPackParameters: true
31BraceWrapping:
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
43BreakBeforeBinaryOperators: None
44BreakBeforeBraces: Custom
45BreakBeforeTernaryOperators: true
46BreakConstructorInitializersBeforeComma: true
47BreakAfterJavaFieldAnnotations: false
48BreakStringLiterals: true
49ColumnLimit: 100
50CommentPragmas: '^ IWYU pragma:'
51ConstructorInitializerAllOnOneLineOrOnePerLine: true
Brian Salomon544851b2016-12-14 09:17:55 -050052ConstructorInitializerIndentWidth: 8
Brian Salomonb4a24e52016-12-08 09:21:00 -050053ContinuationIndentWidth: 8
54Cpp11BracedListStyle: true
55DerivePointerAlignment: false
56DisableFormat: false
57ExperimentalAutoDetectBinPacking: true
58ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
59IncludeCategories:
60 - Regex: '^<.*\.h>'
61 Priority: 1
62 - Regex: '^<.*'
63 Priority: 2
64 - Regex: '.*'
65 Priority: 3
66IncludeIsMainRegex: '([-_](test|unittest))?$'
67IndentCaseLabels: true
68IndentWidth: 4
69IndentWrappedFunctionNames: false
70JavaScriptQuotes: Leave
71JavaScriptWrapImports: true
72KeepEmptyLinesAtTheStartOfBlocks: false
73MacroBlockBegin: ''
74MacroBlockEnd: ''
75MaxEmptyLinesToKeep: 1
76NamespaceIndentation: None
77ObjCBlockIndentWidth: 2
78ObjCSpaceAfterProperty: false
79ObjCSpaceBeforeProtocolList: false
80PenaltyBreakBeforeFirstCallParameter: 1
81PenaltyBreakComment: 300
82PenaltyBreakFirstLessLess: 120
83PenaltyBreakString: 1000
84PenaltyExcessCharacter: 1000000
85PenaltyReturnTypeOnItsOwnLine: 200
86PointerAlignment: Left
87ReflowComments: true
88SortIncludes: true
89SpaceAfterCStyleCast: false
90SpaceAfterTemplateKeyword: true
91SpaceBeforeAssignmentOperators: true
92SpaceBeforeParens: ControlStatements
93SpaceInEmptyParentheses: false
94SpacesBeforeTrailingComments: 2
95SpacesInAngles: false
96SpacesInContainerLiterals: true
97SpacesInCStyleCastParentheses: false
98SpacesInParentheses: false
99SpacesInSquareBrackets: false
100Standard: Auto
101TabWidth: 4
102UseTab: Never
103...
104