summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-09-14 14:42:28 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-09-14 14:42:28 -0500
commitd9341b4a9f85aafb39e6375a00d4ae8bed74ce33 (patch)
tree9bbcc21c7c5f33fe2defbfe7dcf9e065e13a5e58
parentb0ce996ac60cf80487d71c3cdb7165d065079377 (diff)
downloadphosphor-bmc-code-mgmt-d9341b4a9f85aafb39e6375a00d4ae8bed74ce33.tar.gz
phosphor-bmc-code-mgmt-d9341b4a9f85aafb39e6375a00d4ae8bed74ce33.zip
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting Change-Id: Ia1edfe21e4b1ff9591b411212c77a310ec4bed68 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--.clang-format3
1 files changed, 2 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 9f628dc..8c5278e 100644
--- a/.clang-format
+++ b/.clang-format
@@ -17,7 +17,7 @@ AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
-AlwaysBreakTemplateDeclarations: false
+AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
@@ -81,6 +81,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
+SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
OpenPOWER on IntegriCloud