From 55546126a12214d775fc5c5ed6ce235938ac85a9 Mon Sep 17 00:00:00 2001 From: John Beard Date: Wed, 27 Mar 2019 14:09:09 +0000 Subject: [PATCH] Clang-format: break after templates Enforce the following format: template<> void function() Rather than: template<> void function() This is the more common format in KiCad (about 8:1) and agrees with the uncrustify.cfg rules. (cherry picked from commit 3536840f526f7e685a63dc46710bf58798df9af8) --- _clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_clang-format b/_clang-format index 230059149b..1a4179264e 100644 --- a/_clang-format +++ b/_clang-format @@ -13,7 +13,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true -AlwaysBreakTemplateDeclarations: false +AlwaysBreakTemplateDeclarations: true BinPackArguments: true BinPackParameters: true BreakBeforeBinaryOperators: NonAssignment