[PATCH] README.Coding disable include sorting in clang format

Gary Lockyer gary at catalyst.net.nz
Wed Jul 4 22:49:21 UTC 2018


Update the README.Coding recommended clang format parameters, to disable
include file sorting.  This is the default and breaks code due to the
header file ordering dependencies.


Review and push appreciated

Gary



-------------- next part --------------
From 1e65cd1b441fab929f6915db2a673642150c97c6 Mon Sep 17 00:00:00 2001
From: Gary Lockyer <gary at catalyst.net.nz>
Date: Thu, 5 Jul 2018 10:36:51 +1200
Subject: [PATCH] README.Coding disable include sorting in clang format

Update the clang format configuration to disable include sorting. This
is enabled by default and breaks samba code.

Signed-off-by: Gary Lockyer <gary at catalyst.net.nz>
---
 README.Coding | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.Coding b/README.Coding
index ffba857..65d72d6 100644
--- a/README.Coding
+++ b/README.Coding
@@ -100,6 +100,7 @@ AllowShortIfStatementsOnASingleLine: false
 IndentCaseLabels: false
 BinPackParameters: false
 BinPackArguments: false
+SortIncludes: false
 
 
 =========================
-- 
2.7.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180705/3c2f5b7e/signature.sig>


More information about the samba-technical mailing list