diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-07 13:39:10 -0500 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2018-09-11 11:25:54 -0500 |
commit | b0ce996ac60cf80487d71c3cdb7165d065079377 (patch) | |
tree | 5e9326940b0627bd21347ffdf87f3f69c99e2a57 /.clang-format | |
parent | 5ed9b2d7b6b4bd21d2a1200537e881e485d13cc9 (diff) | |
download | phosphor-bmc-code-mgmt-b0ce996ac60cf80487d71c3cdb7165d065079377.tar.gz phosphor-bmc-code-mgmt-b0ce996ac60cf80487d71c3cdb7165d065079377.zip |
clang-format: Update to match docs repo
Update the .clang-format file.
Now includes header sorting and updating PointerAlignment.
Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17dd8054
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/.clang-format b/.clang-format index bbc1bb1..9f628dc 100644 --- a/.clang-format +++ b/.clang-format @@ -42,12 +42,25 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 Cpp11BracedListStyle: true -DerivePointerAlignment: true -PointerAlignment: Left +DerivePointerAlignment: false DisableFormat: false ExperimentalAutoDetectBinPacking: false FixNamespaceComments: true ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^[<"](gtest|gmock)' + Priority: 5 + - Regex: '^"config.h"' + Priority: -1 + - Regex: '^".*\.hpp"' + Priority: 1 + - Regex: '^<.*\.h>' + Priority: 2 + - Regex: '^<.*' + Priority: 3 + - Regex: '.*' + Priority: 4 IndentCaseLabels: true IndentWidth: 4 IndentWrappedFunctionNames: true @@ -65,9 +78,9 @@ PenaltyBreakFirstLessLess: 120 PenaltyBreakString: 1000 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 -PointerAlignment: Right +PointerAlignment: Left ReflowComments: true -SortIncludes: false +SortIncludes: true SpaceAfterCStyleCast: false SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements @@ -82,4 +95,3 @@ Standard: Cpp11 TabWidth: 4 UseTab: Never ... - |