Fix issues for clang-analyzer-8
[gromacs.git] / .clang-format
blob9696138a2999eb830994c4da941f7db256d70cd7
1 ---
2 Language:        Cpp
3 AccessModifierOffset: -4
4 AlignAfterOpenBracket: Align
5 AlignConsecutiveAssignments: true
6 AlignConsecutiveDeclarations: true
7 AlignEscapedNewlinesLeft: true
8 AlignOperands:   true
9 AlignTrailingComments: true
10 AllowAllParametersOfDeclarationOnNextLine: true
11 AllowShortBlocksOnASingleLine: false
12 AllowShortCaseLabelsOnASingleLine: false
13 AllowShortFunctionsOnASingleLine: Inline
14 AllowShortIfStatementsOnASingleLine: false
15 AllowShortLoopsOnASingleLine: false
16 AlwaysBreakAfterDefinitionReturnType: None
17 AlwaysBreakAfterReturnType: None
18 AlwaysBreakBeforeMultilineStrings: true
19 AlwaysBreakTemplateDeclarations: true
20 BinPackArguments: true
21 BinPackParameters: false
22 BraceWrapping:
23   AfterClass:      true
24   AfterControlStatement: true
25   AfterEnum:       true
26   AfterFunction:   true
27   AfterNamespace:  true
28   AfterObjCDeclaration: true
29   AfterStruct:     true
30   AfterUnion:      true
31   BeforeCatch:     true
32   BeforeElse:      true
33   IndentBraces:    false
34 BreakBeforeBinaryOperators: All
35 BreakBeforeBraces: Allman
36 BreakBeforeTernaryOperators: true
37 BreakConstructorInitializersBeforeComma: false
38 BreakAfterJavaFieldAnnotations: false
39 BreakStringLiterals: true
40 ColumnLimit:     100
41 CommentPragmas:  '^ IWYU pragma:'
42 ConstructorInitializerAllOnOneLineOrOnePerLine: false
43 ConstructorInitializerIndentWidth: 4
44 ContinuationIndentWidth: 8
45 Cpp11BracedListStyle: false
46 DerivePointerAlignment: false
47 DisableFormat:   false
48 ExperimentalAutoDetectBinPacking: false
49 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
50 IncludeCategories:
51   - Regex:           '^<.*\.h>'
52     Priority:        1
53   - Regex:           '^<.*'
54     Priority:        2
55   - Regex:           '.*'
56     Priority:        3
57 IncludeIsMainRegex: '([-_](test|unittest))?$'
58 IndentCaseLabels: true
59 IndentWidth:     4
60 IndentWrappedFunctionNames: false
61 JavaScriptQuotes: Leave
62 JavaScriptWrapImports: true
63 KeepEmptyLinesAtTheStartOfBlocks: true
64 MacroBlockBegin: ''
65 MacroBlockEnd:   ''
66 MaxEmptyLinesToKeep: 2
67 NamespaceIndentation: None
68 ObjCBlockIndentWidth: 2
69 ObjCSpaceAfterProperty: false
70 ObjCSpaceBeforeProtocolList: false
71 PenaltyBreakBeforeFirstCallParameter: 1
72 PenaltyBreakComment: 300
73 PenaltyBreakFirstLessLess: 120
74 PenaltyBreakString: 1000
75 PenaltyExcessCharacter: 1
76 PenaltyReturnTypeOnItsOwnLine: 100
77 PointerAlignment: Right
78 ReflowComments:  true
79 SortIncludes:    false
80 SpaceAfterCStyleCast: false
81 SpaceBeforeAssignmentOperators: true
82 SpaceBeforeParens: ControlStatements
83 SpaceInEmptyParentheses: false
84 SpacesBeforeTrailingComments: 1
85 SpacesInAngles:  false
86 SpacesInContainerLiterals: false
87 SpacesInCStyleCastParentheses: false
88 SpacesInParentheses: false
89 SpacesInSquareBrackets: false
90 Standard:        Cpp11
91 TabWidth:        8
92 UseTab:          Never
93 ...