xref: /openbmc/service-config-manager/.clang-format (revision fa5d5ca73024c6be6a011184edad79a6cf2c7630)
10084047dSAppaRao Puli---
20084047dSAppaRao PuliLanguage:        Cpp
30084047dSAppaRao Puli# BasedOnStyle:  LLVM
40084047dSAppaRao PuliAccessModifierOffset: -2
50084047dSAppaRao PuliAlignAfterOpenBracket: Align
60084047dSAppaRao PuliAlignConsecutiveAssignments: false
70084047dSAppaRao PuliAlignConsecutiveDeclarations: false
8ee853eb2SAppaRao PuliAlignEscapedNewlines: Right
90084047dSAppaRao PuliAlignOperands:   true
100084047dSAppaRao PuliAlignTrailingComments: true
110084047dSAppaRao PuliAllowAllParametersOfDeclarationOnNextLine: true
120084047dSAppaRao PuliAllowShortBlocksOnASingleLine: false
130084047dSAppaRao PuliAllowShortCaseLabelsOnASingleLine: false
140084047dSAppaRao PuliAllowShortFunctionsOnASingleLine: None
150084047dSAppaRao PuliAllowShortIfStatementsOnASingleLine: false
160084047dSAppaRao PuliAllowShortLoopsOnASingleLine: false
170084047dSAppaRao PuliAlwaysBreakAfterReturnType: None
180084047dSAppaRao PuliAlwaysBreakBeforeMultilineStrings: false
19ee853eb2SAppaRao PuliAlwaysBreakTemplateDeclarations: Yes
200084047dSAppaRao PuliBinPackArguments: true
210084047dSAppaRao PuliBinPackParameters: true
220084047dSAppaRao PuliBraceWrapping:
23ee853eb2SAppaRao Puli  AfterCaseLabel:  true
240084047dSAppaRao Puli  AfterClass:      true
250084047dSAppaRao Puli  AfterControlStatement: true
260084047dSAppaRao Puli  AfterEnum:       true
270084047dSAppaRao Puli  AfterFunction:   true
280084047dSAppaRao Puli  AfterNamespace:  true
290084047dSAppaRao Puli  AfterObjCDeclaration: true
300084047dSAppaRao Puli  AfterStruct:     true
310084047dSAppaRao Puli  AfterUnion:      true
32ee853eb2SAppaRao Puli  AfterExternBlock: true
330084047dSAppaRao Puli  BeforeCatch:     true
340084047dSAppaRao Puli  BeforeElse:      true
350084047dSAppaRao Puli  IndentBraces:    false
36ee853eb2SAppaRao Puli  SplitEmptyFunction:   false
37ee853eb2SAppaRao Puli  SplitEmptyRecord:     false
38ee853eb2SAppaRao Puli  SplitEmptyNamespace:  false
390084047dSAppaRao PuliBreakBeforeBinaryOperators: None
400084047dSAppaRao PuliBreakBeforeBraces: Custom
410084047dSAppaRao PuliBreakBeforeTernaryOperators: true
420084047dSAppaRao PuliBreakConstructorInitializers: AfterColon
43ee853eb2SAppaRao PuliBreakInheritanceList: AfterColon
44*fa5d5ca7SGeorge LiuBreakStringLiterals: false
450084047dSAppaRao PuliColumnLimit:     80
460084047dSAppaRao PuliCommentPragmas:  '^ IWYU pragma:'
47ee853eb2SAppaRao PuliCompactNamespaces: false
480084047dSAppaRao PuliConstructorInitializerAllOnOneLineOrOnePerLine: false
490084047dSAppaRao PuliConstructorInitializerIndentWidth: 4
500084047dSAppaRao PuliContinuationIndentWidth: 4
510084047dSAppaRao PuliCpp11BracedListStyle: true
52*fa5d5ca7SGeorge LiuDeriveLineEnding: false
53ee853eb2SAppaRao PuliDerivePointerAlignment: false
540084047dSAppaRao PuliPointerAlignment: Left
550084047dSAppaRao PuliDisableFormat:   false
560084047dSAppaRao PuliExperimentalAutoDetectBinPacking: false
570084047dSAppaRao PuliFixNamespaceComments: true
580084047dSAppaRao PuliForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
59ee853eb2SAppaRao PuliIncludeBlocks: Regroup
60ee853eb2SAppaRao PuliIncludeCategories:
61ee853eb2SAppaRao Puli  - Regex:           '^[<"](gtest|gmock)'
62ee853eb2SAppaRao Puli    Priority:        7
63ee853eb2SAppaRao Puli  - Regex:           '^"config.h"'
64ee853eb2SAppaRao Puli    Priority:        -1
65ee853eb2SAppaRao Puli  - Regex:           '^".*\.h"'
66ee853eb2SAppaRao Puli    Priority:        1
67ee853eb2SAppaRao Puli  - Regex:           '^".*\.hpp"'
68ee853eb2SAppaRao Puli    Priority:        2
69ee853eb2SAppaRao Puli  - Regex:           '^<.*\.h>'
70ee853eb2SAppaRao Puli    Priority:        3
71ee853eb2SAppaRao Puli  - Regex:           '^<.*\.hpp>'
72ee853eb2SAppaRao Puli    Priority:        4
73ee853eb2SAppaRao Puli  - Regex:           '^<.*'
74ee853eb2SAppaRao Puli    Priority:        5
75ee853eb2SAppaRao Puli  - Regex:           '.*'
76ee853eb2SAppaRao Puli    Priority:        6
770084047dSAppaRao PuliIndentCaseLabels: true
780084047dSAppaRao PuliIndentWidth:     4
790084047dSAppaRao PuliIndentWrappedFunctionNames: true
800084047dSAppaRao PuliKeepEmptyLinesAtTheStartOfBlocks: true
810084047dSAppaRao PuliMacroBlockBegin: ''
820084047dSAppaRao PuliMacroBlockEnd:   ''
830084047dSAppaRao PuliMaxEmptyLinesToKeep: 1
840084047dSAppaRao PuliNamespaceIndentation: None
850084047dSAppaRao PuliObjCBlockIndentWidth: 2
860084047dSAppaRao PuliObjCSpaceAfterProperty: false
870084047dSAppaRao PuliObjCSpaceBeforeProtocolList: true
880084047dSAppaRao PuliPenaltyBreakBeforeFirstCallParameter: 19
890084047dSAppaRao PuliPenaltyBreakComment: 300
900084047dSAppaRao PuliPenaltyBreakFirstLessLess: 120
910084047dSAppaRao PuliPenaltyBreakString: 1000
920084047dSAppaRao PuliPenaltyExcessCharacter: 1000000
930084047dSAppaRao PuliPenaltyReturnTypeOnItsOwnLine: 60
940084047dSAppaRao PuliReflowComments:  true
95ee853eb2SAppaRao PuliSortIncludes:    true
96ee853eb2SAppaRao PuliSortUsingDeclarations: true
970084047dSAppaRao PuliSpaceAfterCStyleCast: false
98ee853eb2SAppaRao PuliSpaceAfterTemplateKeyword: true
990084047dSAppaRao PuliSpaceBeforeAssignmentOperators: true
100ee853eb2SAppaRao PuliSpaceBeforeCpp11BracedList: false
101ee853eb2SAppaRao PuliSpaceBeforeCtorInitializerColon: true
102ee853eb2SAppaRao PuliSpaceBeforeInheritanceColon: true
1030084047dSAppaRao PuliSpaceBeforeParens: ControlStatements
104ee853eb2SAppaRao PuliSpaceBeforeRangeBasedForLoopColon: true
1050084047dSAppaRao PuliSpaceInEmptyParentheses: false
1060084047dSAppaRao PuliSpacesBeforeTrailingComments: 1
1070084047dSAppaRao PuliSpacesInAngles:  false
1080084047dSAppaRao PuliSpacesInContainerLiterals: true
1090084047dSAppaRao PuliSpacesInCStyleCastParentheses: false
1100084047dSAppaRao PuliSpacesInParentheses: false
1110084047dSAppaRao PuliSpacesInSquareBrackets: false
112*fa5d5ca7SGeorge LiuStandard:        Latest
1130084047dSAppaRao PuliTabWidth:        4
114*fa5d5ca7SGeorge LiuUseCRLF: false
1150084047dSAppaRao PuliUseTab:          Never
1160084047dSAppaRao Puli...
117ee853eb2SAppaRao Puli
118