[PATCH 1 of 2] cext: reformat with clang-format 6.0

Yuya Nishihara yuya at tcha.org
Sat Jul 14 02:02:53 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1531533010 -32400
#      Sat Jul 14 10:50:10 2018 +0900
# Node ID 42bce1d7778658cae95ec0a2aa29ff72d503c000
# Parent  2a227782e75426a3e4408273a9a4eebe79dfdcea
cext: reformat with clang-format 6.0

It appears some changes in clang-format affect our code. I didn't dig into
that deeper since the new output looks better.

diff --git a/mercurial/cext/pathencode.c b/mercurial/cext/pathencode.c
--- a/mercurial/cext/pathencode.c
+++ b/mercurial/cext/pathencode.c
@@ -474,7 +474,10 @@ static Py_ssize_t basicencode(char *dest
 	static const uint32_t twobytes[8] = {0, 0, 0x87fffffe};
 
 	static const uint32_t onebyte[8] = {
-	    1, 0x2bff3bfa, 0x68000001, 0x2fffffff,
+	    1,
+	    0x2bff3bfa,
+	    0x68000001,
+	    0x2fffffff,
 	};
 
 	Py_ssize_t destlen = 0;


More information about the Mercurial-devel mailing list