From 90652b9066af2e1fa72be3ba91fceea83f3af23f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 19 Mar 2019 10:39:34 -0700 Subject: clang-format: Break after templates Before, code would get formatted thus: template class X {} Now, it gets formatted as such: template class X {} --- .clang-format | 2 +- host/include/.clang-format | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 6e9ab97ca..343f2a6c5 100644 --- a/.clang-format +++ b/.clang-format @@ -15,7 +15,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false +AlwaysBreakTemplateDeclarations: true BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment diff --git a/host/include/.clang-format b/host/include/.clang-format index c8aad70cc..e2dc7e0a7 100644 --- a/host/include/.clang-format +++ b/host/include/.clang-format @@ -15,7 +15,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false +AlwaysBreakTemplateDeclarations: true BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment -- cgit v1.2.3