xref: /openbmc/phosphor-user-manager/.clang-format (revision 88a82dbcc7ba79bb7a8193ae066836216887c6af)
19f630d9eSRichard Marian Thomaiyar---
29f630d9eSRichard Marian ThomaiyarLanguage:        Cpp
39f630d9eSRichard Marian Thomaiyar# BasedOnStyle:  LLVM
49f630d9eSRichard Marian ThomaiyarAccessModifierOffset: -2
59f630d9eSRichard Marian ThomaiyarAlignAfterOpenBracket: Align
69f630d9eSRichard Marian ThomaiyarAlignConsecutiveAssignments: false
79f630d9eSRichard Marian ThomaiyarAlignConsecutiveDeclarations: false
89638afb9SPatrick WilliamsAlignEscapedNewlines: Right
9b7043047SPatrick WilliamsAlignOperands:  Align
10b7043047SPatrick WilliamsAlignTrailingComments:
11b7043047SPatrick Williams  Kind: Always
12b7043047SPatrick Williams  OverEmptyLines: 1
139f630d9eSRichard Marian ThomaiyarAllowAllParametersOfDeclarationOnNextLine: true
14b7043047SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
159f630d9eSRichard Marian ThomaiyarAllowShortCaseLabelsOnASingleLine: false
16b7043047SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17cb20ea83SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18cb20ea83SPatrick WilliamsAllowShortLambdasOnASingleLine: true
199f630d9eSRichard Marian ThomaiyarAllowShortLoopsOnASingleLine: false
209f630d9eSRichard Marian ThomaiyarAlwaysBreakBeforeMultilineStrings: false
219f630d9eSRichard Marian ThomaiyarBinPackArguments: true
229f630d9eSRichard Marian ThomaiyarBinPackParameters: true
23cb20ea83SPatrick WilliamsBitFieldColonSpacing: None
249f630d9eSRichard Marian ThomaiyarBraceWrapping:
256ee466b6SRichard Marian Thomaiyar  AfterCaseLabel:  true
269f630d9eSRichard Marian Thomaiyar  AfterClass:      true
279f630d9eSRichard Marian Thomaiyar  AfterControlStatement: true
289f630d9eSRichard Marian Thomaiyar  AfterEnum:       true
29cb20ea83SPatrick Williams  AfterExternBlock: true
309f630d9eSRichard Marian Thomaiyar  AfterFunction:   true
319f630d9eSRichard Marian Thomaiyar  AfterNamespace:  true
329f630d9eSRichard Marian Thomaiyar  AfterObjCDeclaration: true
339f630d9eSRichard Marian Thomaiyar  AfterStruct:     true
349f630d9eSRichard Marian Thomaiyar  AfterUnion:      true
359f630d9eSRichard Marian Thomaiyar  BeforeCatch:     true
369f630d9eSRichard Marian Thomaiyar  BeforeElse:      true
37cb20ea83SPatrick Williams  BeforeLambdaBody: false
38cb20ea83SPatrick Williams  BeforeWhile:     false
399f630d9eSRichard Marian Thomaiyar  IndentBraces:    false
409638afb9SPatrick Williams  SplitEmptyFunction:   false
419638afb9SPatrick Williams  SplitEmptyRecord:     false
429638afb9SPatrick Williams  SplitEmptyNamespace:  false
43b7043047SPatrick WilliamsBreakAfterAttributes: Never
4466addf25SPatrick WilliamsBreakAfterReturnType: Automatic
459f630d9eSRichard Marian ThomaiyarBreakBeforeBinaryOperators: None
469f630d9eSRichard Marian ThomaiyarBreakBeforeBraces: Custom
479f630d9eSRichard Marian ThomaiyarBreakBeforeTernaryOperators: true
489f630d9eSRichard Marian ThomaiyarBreakConstructorInitializers: AfterColon
499638afb9SPatrick WilliamsBreakInheritanceList: AfterColon
50b7043047SPatrick WilliamsBreakStringLiterals: false
5166addf25SPatrick WilliamsBreakTemplateDeclarations: Yes
529f630d9eSRichard Marian ThomaiyarColumnLimit:     80
539f630d9eSRichard Marian ThomaiyarCommentPragmas:  '^ IWYU pragma:'
549638afb9SPatrick WilliamsCompactNamespaces: false
559f630d9eSRichard Marian ThomaiyarConstructorInitializerIndentWidth: 4
569f630d9eSRichard Marian ThomaiyarContinuationIndentWidth: 4
579f630d9eSRichard Marian ThomaiyarCpp11BracedListStyle: true
589638afb9SPatrick WilliamsDerivePointerAlignment: false
599f630d9eSRichard Marian ThomaiyarDisableFormat:   false
609f630d9eSRichard Marian ThomaiyarFixNamespaceComments: true
61cb20ea83SPatrick WilliamsForEachMacros:
62cb20ea83SPatrick Williams  - foreach
63cb20ea83SPatrick Williams  - Q_FOREACH
64cb20ea83SPatrick Williams  - BOOST_FOREACH
659638afb9SPatrick WilliamsIncludeBlocks: Regroup
669638afb9SPatrick WilliamsIncludeCategories:
679638afb9SPatrick Williams  - Regex:           '^[<"](gtest|gmock)'
689638afb9SPatrick Williams    Priority:        7
699638afb9SPatrick Williams  - Regex:           '^"config.h"'
709638afb9SPatrick Williams    Priority:        -1
719638afb9SPatrick Williams  - Regex:           '^".*\.h"'
729638afb9SPatrick Williams    Priority:        1
739638afb9SPatrick Williams  - Regex:           '^".*\.hpp"'
749638afb9SPatrick Williams    Priority:        2
759638afb9SPatrick Williams  - Regex:           '^<.*\.h>'
769638afb9SPatrick Williams    Priority:        3
779638afb9SPatrick Williams  - Regex:           '^<.*\.hpp>'
789638afb9SPatrick Williams    Priority:        4
799638afb9SPatrick Williams  - Regex:           '^<.*'
809638afb9SPatrick Williams    Priority:        5
819638afb9SPatrick Williams  - Regex:           '.*'
829638afb9SPatrick Williams    Priority:        6
839f630d9eSRichard Marian ThomaiyarIndentCaseLabels: true
84cb20ea83SPatrick WilliamsIndentExternBlock: NoIndent
85b7043047SPatrick WilliamsIndentRequiresClause: true
869f630d9eSRichard Marian ThomaiyarIndentWidth:     4
879f630d9eSRichard Marian ThomaiyarIndentWrappedFunctionNames: true
88b7043047SPatrick WilliamsInsertNewlineAtEOF: true
89b7043047SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
9016c2b681SPatrick WilliamsLambdaBodyIndentation: Signature
91b7043047SPatrick WilliamsLineEnding: LF
929f630d9eSRichard Marian ThomaiyarMacroBlockBegin: ''
939f630d9eSRichard Marian ThomaiyarMacroBlockEnd:   ''
949f630d9eSRichard Marian ThomaiyarMaxEmptyLinesToKeep: 1
959f630d9eSRichard Marian ThomaiyarNamespaceIndentation: None
969f630d9eSRichard Marian ThomaiyarObjCBlockIndentWidth: 2
979f630d9eSRichard Marian ThomaiyarObjCSpaceAfterProperty: false
989f630d9eSRichard Marian ThomaiyarObjCSpaceBeforeProtocolList: true
99cb20ea83SPatrick WilliamsPackConstructorInitializers: BinPack
100b7043047SPatrick WilliamsPenaltyBreakAssignment: 25
10116c2b681SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1029f630d9eSRichard Marian ThomaiyarPenaltyBreakComment: 300
1039f630d9eSRichard Marian ThomaiyarPenaltyBreakFirstLessLess: 120
1049f630d9eSRichard Marian ThomaiyarPenaltyBreakString: 1000
10516c2b681SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1069f630d9eSRichard Marian ThomaiyarPenaltyExcessCharacter: 1000000
107*88a82dbcSPatrick WilliamsPenaltyReturnTypeOnItsOwnLine: 150
10816c2b681SPatrick WilliamsPenaltyIndentedWhitespace: 1
109cb20ea83SPatrick WilliamsPointerAlignment: Left
110b7043047SPatrick WilliamsQualifierAlignment: Left
111b7043047SPatrick WilliamsReferenceAlignment: Left
1129f630d9eSRichard Marian ThomaiyarReflowComments:  true
113b7043047SPatrick WilliamsRequiresClausePosition: OwnLine
114b7043047SPatrick WilliamsRequiresExpressionIndentation: Keyword
115cb20ea83SPatrick WilliamsSortIncludes: CaseSensitive
1169638afb9SPatrick WilliamsSortUsingDeclarations: true
1179f630d9eSRichard Marian ThomaiyarSpaceAfterCStyleCast: false
1189638afb9SPatrick WilliamsSpaceAfterTemplateKeyword: true
1199f630d9eSRichard Marian ThomaiyarSpaceBeforeAssignmentOperators: true
1209638afb9SPatrick WilliamsSpaceBeforeCpp11BracedList: false
1219638afb9SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
1229638afb9SPatrick WilliamsSpaceBeforeInheritanceColon: true
1239f630d9eSRichard Marian ThomaiyarSpaceBeforeParens: ControlStatements
1249638afb9SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
1259f630d9eSRichard Marian ThomaiyarSpaceInEmptyParentheses: false
1269f630d9eSRichard Marian ThomaiyarSpacesBeforeTrailingComments: 1
127cb20ea83SPatrick WilliamsSpacesInAngles: Never
1289f630d9eSRichard Marian ThomaiyarSpacesInContainerLiterals: true
1299f630d9eSRichard Marian ThomaiyarSpacesInCStyleCastParentheses: false
1309f630d9eSRichard Marian ThomaiyarSpacesInParentheses: false
1319f630d9eSRichard Marian ThomaiyarSpacesInSquareBrackets: false
1329638afb9SPatrick WilliamsStandard:        Latest
1339f630d9eSRichard Marian ThomaiyarTabWidth:        4
1349f630d9eSRichard Marian ThomaiyarUseTab:          Never
1359f630d9eSRichard Marian Thomaiyar...
1369638afb9SPatrick Williams
137